]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix connect help
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 3 Sep 2010 05:23:15 +0000 (05:23 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 3 Sep 2010 05:23:15 +0000 (05:23 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10435 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index d15a04cab497966555161664c929e5fdb1b62232..a3b2502827cfc0e77911f7d14ca3339af81efd54 100644 (file)
@@ -522,9 +522,9 @@ User command to connect to server
 */
 void Host_Connect_f (void)
 {
-       if (Cmd_Argc() != 2)
+       if (Cmd_Argc() < 2)
        {
-               Con_Print("connect <serveraddress> : connect to a multiplayer game\n");
+               Con_Print("connect <serveraddress> [<key> <value> ...]: connect to a multiplayer game\n");
                return;
        }
        // clear the rcon password, to prevent vulnerability by stuffcmd-ing a connect command