diff --git a/modules/report/api.js b/modules/report/api.js index d0b2800..a14f905 100644 --- a/modules/report/api.js +++ b/modules/report/api.js @@ -19,7 +19,9 @@ var api = function(dbot) { 'time': new Date().getTime(), 'message': message, 'tags': tags - }, function() {}); + }, function(err, notify) { + dbot.api.event.emit('new_notify', [ notify, user.primaryNick ]); + }); var channel = dbot.instance.connections[server].channels[cName]; var ops = _.filter(channel.nicks, function(user) { diff --git a/modules/report/report.js b/modules/report/report.js index e25c692..7a884c2 100644 --- a/modules/report/report.js +++ b/modules/report/report.js @@ -15,7 +15,6 @@ var report = function(dbot) { next(); }, 1000); }); - dbot.api.event.emit('new_notify', [ message ]); }, 'formatNotify': function(type, server, user, channel, message) {