Skip to content

Commit

Permalink
Fix channel user modes on Twitch IRC (closes #364)
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed May 15, 2015
1 parent f7bfd7d commit 09e509c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ function Client(server, nick, opt) {
self.emit('+mode', message.args[0], message.nick, mode, user, message);
}
else {
channel.users[user] = channel.users[user].replace(self.prefixForMode[mode], '');
if (channel.users[user])
channel.users[user] = channel.users[user].replace(self.prefixForMode[mode], '');

self.emit('-mode', message.args[0], message.nick, mode, user, message);
}
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"Justin Gallardo <[email protected]>",
"Chris Nehren <[email protected]>",
"Henri Niemeläinen <[email protected]>",
"Alex Miles <[email protected]>"
"Alex Miles <[email protected]>",
"Simmo Saan <[email protected]>"
],
"repository": {
"type": "git",
Expand Down

0 comments on commit 09e509c

Please sign in to comment.