diff --git a/lib/channel/chat.js b/lib/channel/chat.js index c1bdbb21..8f5bc187 100644 --- a/lib/channel/chat.js +++ b/lib/channel/chat.js @@ -199,7 +199,7 @@ ChatModule.prototype.handlePm = function (user, data) { }; ChatModule.prototype.processChatMsg = function (user, data) { - if (data.msg.indexOf("/afk") !== 0) { + if (data.msg.indexOf("/afk") === -1) { user.setAFK(false); }