Skip to content

Commit

Permalink
User status isn't updated on MODE if he's not VOICE or OP
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoddo committed Mar 26, 2016
1 parent 8e05622 commit e8484a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ function Client(server, nick, opt) {
};
if (mode in self.prefixForMode) {
modeArg = modeArgs.shift();
if (channel.users[modeArg]) {
if (channel.users.hasOwnProperty(modeArg)) {
if (adding) {
if (channel.users[modeArg].indexOf(self.prefixForMode[mode]) === -1)
channel.users[modeArg] += self.prefixForMode[mode];
Expand Down

0 comments on commit e8484a1

Please sign in to comment.