From 876a7b29e2db1b8ea0c663f9375fc5ce75b2ec76 Mon Sep 17 00:00:00 2001 From: Cory Chaplin Date: Wed, 14 May 2014 10:30:51 +0200 Subject: [PATCH] Fix wallops --- server/irc/commands.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/irc/commands.js b/server/irc/commands.js index 58d4cea..72e6b5d 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' + ' ' + command.params[0] + ' notice', { - from_server: command.prefix ? true : false, - nick: 'WALLOPS', - ident: '', - hostname: '', - target: command.params[0], + this.irc_connection.emit('user ' + this.irc_connection.event.split(' ')[1] + ' notice', { + from_server: false, + nick: 'WALLOPS: ' + command.nick, + ident: command.ident, + hostname: command.hostname, + target: this.irc_connection.event.split(' ')[1], msg: command.params[command.params.length - 1] }); }, -- 2.25.1