change notify event trigger

This commit is contained in:
reality 2014-07-14 22:54:23 +00:00
parent 1aec6dcd34
commit ad35f9cc82
2 changed files with 3 additions and 2 deletions

View File

@ -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) {

View File

@ -15,7 +15,6 @@ var report = function(dbot) {
next();
}, 1000);
});
dbot.api.event.emit('new_notify', [ message ]);
},
'formatNotify': function(type, server, user, channel, message) {