From ba710c22131e9eaa2a9a7e8b485dc22f22dd65a6 Mon Sep 17 00:00:00 2001 From: KiwiIRC Date: Sun, 13 Apr 2014 02:33:13 +0200 Subject: [PATCH] Removed tab from code --- server/irc/user.js | 28 ++++++++++++++-------------- server_modules/example.js | 4 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/server/irc/user.js b/server/irc/user.js index 0a7cb93..13a0ba6 100755 --- a/server/irc/user.js +++ b/server/irc/user.js @@ -219,21 +219,21 @@ function onWhoWasEnd(event) { } function onNotice(event) { - var that = this; - global.modules.emit('irc notice', { - connection: this.irc_connection, - irc_event: event + var that = this; + global.modules.emit('irc user notice', { + connection: this.irc_connection, + irc_event: event }) - .done(function() { - that.irc_connection.clientEvent('notice', { - from_server: event.from_server, - nick: event.nick, - ident: event.ident, - hostname: event.hostname, - target: event.target, - msg: event.msg, - time: event.time - }); + .done(function() { + that.irc_connection.clientEvent('notice', { + from_server: event.from_server, + nick: event.nick, + ident: event.ident, + hostname: event.hostname, + target: event.target, + msg: event.msg, + time: event.time + }); }); } diff --git a/server_modules/example.js b/server_modules/example.js index 9e995ff..d880c19 100644 --- a/server_modules/example.js +++ b/server_modules/example.js @@ -14,8 +14,8 @@ module.on('irc message', function(event, data) { console.log('[MESSAGE]', data.irc_event); }); -// The Client recieves a IRC NOTICE command -module.on('irc notice', function(event, data) { +// The Client recieves a IRC USER NOTICE command +module.on('irc user notice', function(event, data) { console.log('[NOTICE]', data.irc_event); }); -- 2.25.1