[8965] Implement quit command for close RA connection.

World only in RA comandline.
This commit is contained in:
VladimirMangos 2009-12-10 19:19:05 +03:00
parent b6cd243cef
commit a2bb655501
12 changed files with 37 additions and 6 deletions

View file

@ -225,7 +225,10 @@ void RASocket::OnRead()
if (strlen(buff))
{
sLog.outRALog("Got '%s' cmd.\n",buff);
sWorld.QueueCliCommand(&RASocket::zprint , buff);
if (strncmp(buff,"quit",4)==0)
SetCloseAndDelete();
else
sWorld.QueueCliCommand(&RASocket::zprint, buff);
}
else
Sendf("mangos>");