Trying to get the proxy on qw master servers.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1360 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-09-24 12:14:42 +00:00
parent ff204ebd02
commit d113f934ba
1 changed files with 7 additions and 2 deletions

View File

@ -427,7 +427,7 @@ void QTV_Rcon(sv_t *qtv, char *message, netadr_t *from)
if (!*qtv->password)
{
Netchan_OutOfBandPrint(qtv->qwdsocket, *from, "n" "Rcon is disabled. Set a password.\n");
Netchan_OutOfBandPrint(qtv->qwdsocket, *from, "n" "Bad rcon_password.\n");
return;
}
@ -438,7 +438,7 @@ void QTV_Rcon(sv_t *qtv, char *message, netadr_t *from)
passlen = command-message;
if (passlen != strlen(qtv->password) || strncmp(message, qtv->password, passlen))
{
Netchan_OutOfBandPrint(qtv->qwdsocket, *from, "n" "Rcon password is incorrect\n");
Netchan_OutOfBandPrint(qtv->qwdsocket, *from, "n" "Bad rcon_password.\n");
return;
}
@ -475,6 +475,11 @@ void ConnectionlessPacket(sv_t *qtv, netadr_t *from, netmsg_t *m)
QTV_Rcon(qtv, buffer+5, from);
return;
}
if (!strncmp(buffer, "ping", 4))
{ //ack
NET_SendPacket (qtv->qwdsocket, 1, "l", *from);
return;
}
if (!strncmp(buffer, "status", 6))
{
QTV_Status(qtv, from);