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");
}
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);