From 8f67d91a56b2aef0d4d2f7f51e61b5ddea7976cb Mon Sep 17 00:00:00 2001 From: Cory Chaplin Date: Wed, 14 May 2014 11:05:27 +0200 Subject: [PATCH] Cleaner nick detection in WALLOPS --- server/irc/commands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/irc/commands.js b/server/irc/commands.js index 72e6b5d..50b85c9 100644 --- a/server/irc/commands.js +++ b/server/irc/commands.js @@ -1417,12 +1417,12 @@ handlers = { }, RPL_WALLOPS: function (command) { - this.irc_connection.emit('user ' + this.irc_connection.event.split(' ')[1] + ' notice', { + this.irc_connection.emit('user ' + this.irc_connection.nick + ' notice', { from_server: false, - nick: 'WALLOPS: ' + command.nick, + nick: 'WALLOPS: ' + command.nick, ident: command.ident, hostname: command.hostname, - target: this.irc_connection.event.split(' ')[1], + target: this.irc_connection.nick, msg: command.params[command.params.length - 1] }); }, -- 2.25.1