fixed not exitting

This commit is contained in:
Anselme 2015-05-21 19:15:46 +02:00
parent 7031a69257
commit 6772b9e0a8
2 changed files with 3 additions and 4 deletions

View File

@ -1,2 +1,2 @@
build build/*
*.user *.user

View File

@ -51,11 +51,10 @@ void SparrowBot::handleMessage(Message msg)
// message // message
if(msg.args.compare("!destroy") == 0) if(msg.args.compare("!update") == 0)
{ {
sendRawMessage("QUIT :i'll be back\r\n"); sendRawMessage("QUIT :i'll be back\r\n");
status = OFFLINE; exit(0);
emit changeSocketStatus(false);
} }
if(msg.args.compare("!list") == 0) if(msg.args.compare("!list") == 0)
{ {