mirror of
https://github.com/mangosfour/server.git
synced 2025-12-31 13:37:07 +00:00
[8965] Implement quit command for close RA connection.
World only in RA comandline.
This commit is contained in:
parent
b6cd243cef
commit
a2bb655501
12 changed files with 37 additions and 6 deletions
|
|
@ -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>");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue