more elegantly fix repeated AFKing
This commit is contained in:
parent
42ca1d2779
commit
96f2204b79
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user