Merge pull request #33 from xPaw/fix-badly-sorted-userlist
Fix #29: Correctly send sorted user list whenever an user joins
This commit is contained in:
commit
d8beaaead8
@ -18,12 +18,11 @@ module.exports = function(irc, network) {
|
|||||||
chan: chan
|
chan: chan
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
var users = chan.users;
|
chan.users.push(new User({name: data.nick}));
|
||||||
users.push(new User({name: data.nick}));
|
|
||||||
chan.sortUsers();
|
chan.sortUsers();
|
||||||
client.emit("users", {
|
client.emit("users", {
|
||||||
chan: chan.id,
|
chan: chan.id,
|
||||||
users: users
|
users: chan.users
|
||||||
});
|
});
|
||||||
var self = false;
|
var self = false;
|
||||||
if (data.nick.toLowerCase() === irc.me.toLowerCase()) {
|
if (data.nick.toLowerCase() === irc.me.toLowerCase()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user