mirror of
https://github.com/thelounge/thelounge
synced 2024-11-10 14:44:13 +00:00
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
1 changed files with 2 additions and 3 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue