]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add another hard coded alias for compatibility (will be removed after 0.6 release)
authorSamual <samual@xonotic.org>
Fri, 6 Jan 2012 16:06:39 +0000 (11:06 -0500)
committerSamual <samual@xonotic.org>
Fri, 6 Jan 2012 16:06:39 +0000 (11:06 -0500)
qcsrc/client/command/cl_cmd.qc
qcsrc/server/command/banning.qc

index 77cbddd85d5a644f8c77b53d5272162937f0c9ae..95032dce7bd4b013ab22701cda09ebf3521486aa 100644 (file)
@@ -323,7 +323,7 @@ void LocalCommand_(float request)
 void LocalCommand_macro_help()
 {
        #define CLIENT_COMMAND(name,function,description) \
-               { if(strtolower(description) != string_null) { print("  ^2", name, "^7: ", description, "\n"); } }
+               { if(strtolower(description) != "") { print("  ^2", name, "^7: ", description, "\n"); } }
                
        CLIENT_COMMANDS(0, 0)
        #undef CLIENT_COMMAND
@@ -356,7 +356,7 @@ float LocalCommand_macro_usage(float argc)
 void LocalCommand_macro_write_aliases(float fh)
 {
        #define CLIENT_COMMAND(name,function,description) \
-               { CMD_Write_Alias("qc_cmd_cl", name, description); }
+               { if(strtolower(description) != "") { CMD_Write_Alias("qc_cmd_cl", name, description); } }
                
        CLIENT_COMMANDS(0, 0)
        #undef CLIENT_COMMAND
index 2fbdd27a050ffbbb6eeec2287ae19cf11b89d3fe..ab58a4aee39dd12316f935087da74945e8886c6c 100644 (file)
@@ -160,9 +160,11 @@ void BanCommand_(float request)
 // ==================================
 
 // Do not hard code aliases for these, instead create them in commands.cfg... also: keep in alphabetical order, please ;)
+// but for 0.5 compat, we need "bans" here as it was replaced... REMOVE IT AFTER 0.6 RELEASE!!!!
 #define BAN_COMMANDS(request,arguments,command) \
        BAN_COMMAND("ban", BanCommand_ban(request, arguments, command), "Ban an IP address or a range of addresses (like 1.2.3)") \
        BAN_COMMAND("banlist", BanCommand_banlist(request), "List all existing bans") \
+       BAN_COMMAND("bans", BanCommand_banlist(request), "") \
        BAN_COMMAND("kickban", BanCommand_kickban(request, arguments, command), "Disconnect a client and ban it at the same time") \
        BAN_COMMAND("unban", BanCommand_unban(request, arguments), "Remove an existing ban") \
        /* nothing */
@@ -170,7 +172,7 @@ void BanCommand_(float request)
 void BanCommand_macro_help()
 {
        #define BAN_COMMAND(name,function,description) \
-               { print("  ^2", name, "^7: ", description, "\n"); }
+               { if(strtolower(description) != "") { print("  ^2", name, "^7: ", description, "\n"); } }
                
        BAN_COMMANDS(0, 0, "")
        #undef BAN_COMMAND
@@ -203,7 +205,7 @@ float BanCommand_macro_usage(float argc)
 void BanCommand_macro_write_aliases(float fh)
 {
        #define BAN_COMMAND(name,function,description) \
-               { CMD_Write_Alias("qc_cmd_sv", name, description); }
+               { if(strtolower(description) != "") { CMD_Write_Alias("qc_cmd_sv", name, description); } }
        
        BAN_COMMANDS(0, 0, "")
        #undef BAN_COMMAND