diff --git a/src/plugins/irc-events/join.js b/src/plugins/irc-events/join.js index edb7c245..23154f96 100644 --- a/src/plugins/irc-events/join.js +++ b/src/plugins/irc-events/join.js @@ -18,12 +18,11 @@ module.exports = function(irc, network) { chan: chan }); } - var users = chan.users; - users.push(new User({name: data.nick})); + chan.users.push(new User({name: data.nick})); chan.sortUsers(); client.emit("users", { chan: chan.id, - users: users + users: chan.users }); var self = false; if (data.nick.toLowerCase() === irc.me.toLowerCase()) {