]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Shorten token names
authorterencehill <piuntn@gmail.com>
Sat, 24 Aug 2013 18:03:13 +0000 (20:03 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 24 Aug 2013 18:03:13 +0000 (20:03 +0200)
qcsrc/client/Main.qc
qcsrc/menu/xonotic/dialog_welcome.c

index c44e1acf213612ce83fe33c4050c2e1acc9135a2..c159a01d50c070aff8e28feb8cc7aef447935223 100644 (file)
@@ -1189,9 +1189,9 @@ void Net_WeaponComplain()
 
 void Net_ReadServerInfo()
 {
-       localcmd("\nmenu_cmd directmenu Welcome serverinfo_name \"", ReadString(),
-               "\" serverinfo_ip \"", ReadString(),
-               "\" serverinfo_MOTD \"", MakeConsoleSafe(strreplace("\n", "\\n", ReadString())),
+       localcmd("\nmenu_cmd directmenu Welcome name \"", ReadString(),
+               "\" ip \"", ReadString(),
+               "\" motd \"", MakeConsoleSafe(strreplace("\n", "\\n", ReadString())),
                "\"\n");
 }
 
index 97982c6d391962663ba4d19330a6a3829328d8db..111ed63a474a3fe2a05212ff30245a24e3516ea0 100644 (file)
@@ -46,21 +46,21 @@ void XonoticWelcomeDialog_readInputArgs(entity me, float argsbuf)
        welcomeDialog_resetStrings(me);
        while((s = bufstr_get(argsbuf, i)) != "")
        {
-               if(s == "serverinfo_name")
+               if(s == "name")
                {
                        if(me.serverinfo_name)
                                strunzone(me.serverinfo_name);
                        me.serverinfo_name = strzone(bufstr_get(argsbuf, i + 1));
                        ++i;
                }
-               else if(s == "serverinfo_ip")
+               else if(s == "ip")
                {
                        if(me.serverinfo_ip)
                                strunzone(me.serverinfo_ip);
                        me.serverinfo_ip = strzone(bufstr_get(argsbuf, i + 1));
                        ++i;
                }
-               else if(s == "serverinfo_MOTD")
+               else if(s == "motd")
                {
                        if(me.serverinfo_MOTD)
                                strunzone(me.serverinfo_MOTD);