Skip to content

Commit

Permalink
Fix #499
Browse files Browse the repository at this point in the history
  • Loading branch information
adurrive committed Feb 10, 2017
1 parent e4000b7 commit d4579f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ function Client(server, nick, opt) {
// TODO better way of finding what channels a user is in?
Object.keys(self.chans).forEach(function(channame) {
var channel = self.chans[channame];
if (!channel.users.hasOwnProperty(message.nick)) {
return;
}
channel.users[message.args[0]] = channel.users[message.nick];
delete channel.users[message.nick];
channels.push(channame);
Expand Down

0 comments on commit d4579f0

Please sign in to comment.