mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-09 17:56:45 +02:00
Update irc-framework and fix issue when changing your own nick
This commit is contained in:
parent
ef0e638a68
commit
7d24394814
|
@ -1,3 +1,3 @@
|
|||
<a href="#" class="user" data-name="{{nick}}">{{mode}}{{nick}}</a>
|
||||
is now known as
|
||||
<a href="#" class="user" data-name="{{newnick}}">{{mode}}{{newnick}}</a>
|
||||
<a href="#" class="user" data-name="{{new_nick}}">{{mode}}{{new_nick}}</a>
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
"event-stream": "3.3.2",
|
||||
"express": "4.13.4",
|
||||
"lodash": "4.6.1",
|
||||
"irc-framework": "1.0.8",
|
||||
"irc-framework": "1.0.10",
|
||||
"mkdirp": "0.5.1",
|
||||
"moment": "2.12.0",
|
||||
"read": "1.0.7",
|
||||
|
|
|
@ -8,7 +8,7 @@ module.exports = function(irc, network) {
|
|||
if (data.nick === irc.user.nick) {
|
||||
var lobby = network.channels[0];
|
||||
var msg = new Msg({
|
||||
text: "You're now known as " + data.newnick,
|
||||
text: "You're now known as " + data.new_nick,
|
||||
});
|
||||
lobby.messages.push(msg);
|
||||
client.emit("msg", {
|
||||
|
@ -19,7 +19,7 @@ module.exports = function(irc, network) {
|
|||
client.save();
|
||||
client.emit("nick", {
|
||||
network: network.id,
|
||||
nick: data.newnick
|
||||
nick: data.new_nick
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ module.exports = function(irc, network) {
|
|||
if (typeof user === "undefined") {
|
||||
return;
|
||||
}
|
||||
user.name = data.newnick;
|
||||
user.name = data.new_nick;
|
||||
chan.sortUsers(irc);
|
||||
client.emit("users", {
|
||||
chan: chan.id
|
||||
|
@ -36,9 +36,9 @@ module.exports = function(irc, network) {
|
|||
var msg = new Msg({
|
||||
time: data.time,
|
||||
type: Msg.Type.NICK,
|
||||
mode: chan.getMode(data.newnick),
|
||||
mode: chan.getMode(data.new_nick),
|
||||
nick: data.nick,
|
||||
newnick: data.newnick,
|
||||
new_nick: data.new_nick,
|
||||
self: self
|
||||
});
|
||||
chan.messages.push(msg);
|
||||
|
|
Loading…
Reference in a new issue