From 2ce2467f4d9f00a32699efc70205dc973326260e Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Wed, 21 May 2014 20:09:10 -0700 Subject: [PATCH] Fix #363 --- lib/channel/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }