more elegantly fix repeated AFKing

This commit is contained in:
in1tiate 2021-04-15 06:42:14 -05:00
parent 42ca1d2779
commit 96f2204b79

View File

@ -324,9 +324,9 @@ Server* AOClient::getServer() { return server; }
void AOClient::onAfkTimeout() void AOClient::onAfkTimeout()
{ {
if (!is_afk)
sendServerMessage("You are now AFK."); sendServerMessage("You are now AFK.");
is_afk = true; is_afk = true;
afk_timer->stop();
} }
AOClient::~AOClient() { AOClient::~AOClient() {