}\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
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);
});