mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
Fix #249. I don't even want to calculate the odds of someone saying a message that contains /afk not at the beginning while being afk.
This commit is contained in:
parent
539d728df4
commit
637eadea23
1 changed files with 1 additions and 1 deletions
2
user.js
2
user.js
|
|
@ -205,7 +205,7 @@ User.prototype.initCallbacks = function() {
|
|||
|
||||
this.socket.on("chatMsg", function(data) {
|
||||
if(this.channel != null) {
|
||||
if(data.msg.indexOf("/afk") == -1) {
|
||||
if(data.msg.indexOf("/afk") != 0) {
|
||||
this.setAFK(false);
|
||||
this.autoAFK();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue