diff --git a/gitignore b/gitignore index 5228a1b..b81d87c 100644 --- a/gitignore +++ b/gitignore @@ -1,2 +1,2 @@ -build +build/* *.user \ No newline at end of file diff --git a/sparrowbot.cpp b/sparrowbot.cpp index 85064b4..704c84b 100644 --- a/sparrowbot.cpp +++ b/sparrowbot.cpp @@ -51,11 +51,10 @@ void SparrowBot::handleMessage(Message msg) // message - if(msg.args.compare("!destroy") == 0) + if(msg.args.compare("!update") == 0) { sendRawMessage("QUIT :i'll be back\r\n"); - status = OFFLINE; - emit changeSocketStatus(false); + exit(0); } if(msg.args.compare("!list") == 0) {