mirror of
https://github.com/thelounge/thelounge
synced 2024-11-15 00:37:13 +00:00
Merge pull request #1772 from thelounge/astorije/fix-nick-change
Fix nick changes wrongly reported
This commit is contained in:
commit
be6975cb83
1 changed files with 2 additions and 4 deletions
|
@ -32,10 +32,6 @@ module.exports = function(irc, network) {
|
|||
return;
|
||||
}
|
||||
|
||||
chan.removeUser(user);
|
||||
user.nick = data.new_nick;
|
||||
chan.setUser(user);
|
||||
|
||||
msg = new Msg({
|
||||
time: data.time,
|
||||
from: user,
|
||||
|
@ -45,7 +41,9 @@ module.exports = function(irc, network) {
|
|||
});
|
||||
chan.pushMessage(client, msg);
|
||||
|
||||
chan.removeUser(user);
|
||||
user.nick = data.new_nick;
|
||||
chan.setUser(user);
|
||||
|
||||
client.emit("users", {
|
||||
chan: chan.id,
|
||||
|
|
Loading…
Reference in a new issue