Removed tab from code
authorKiwiIRC <kiwiirc@ns352438.ovh.net>
Sun, 13 Apr 2014 00:33:13 +0000 (02:33 +0200)
committerKiwiIRC <kiwiirc@ns352438.ovh.net>
Sun, 13 Apr 2014 00:33:13 +0000 (02:33 +0200)
server/irc/user.js
server_modules/example.js

index 0a7cb93cd1ad14fe04281c4bccc65dfba9d64e21..13a0ba68f38529a8a6312a0ccde35a3a3a77e175 100755 (executable)
@@ -219,21 +219,21 @@ function onWhoWasEnd(event) {
 }\r
 \r
 function onNotice(event) {\r
-       var that = this;\r
-    global.modules.emit('irc notice', {\r
-        connection: this.irc_connection,\r
-        irc_event: event\r
+   var that = this;\r
+   global.modules.emit('irc user notice', {\r
+       connection: this.irc_connection,\r
+       irc_event: event\r
     })\r
-       .done(function() {\r
-           that.irc_connection.clientEvent('notice', {\r
-               from_server: event.from_server,\r
-               nick: event.nick,\r
-               ident: event.ident,\r
-               hostname: event.hostname,\r
-               target: event.target,\r
-               msg: event.msg,\r
-               time: event.time\r
-           });\r
+    .done(function() {\r
+        that.irc_connection.clientEvent('notice', {\r
+            from_server: event.from_server,\r
+            nick: event.nick,\r
+            ident: event.ident,\r
+            hostname: event.hostname,\r
+            target: event.target,\r
+            msg: event.msg,\r
+            time: event.time\r
+        });\r
     });\r
 }\r
 \r
index 9e995ff41fb114696091a30577accc49d4591a74..d880c1914423709e6d9dbcb469d2eeae5e328ce6 100644 (file)
@@ -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);
 });