forked from GitHub/dbot
change notify event trigger
This commit is contained in:
parent
1aec6dcd34
commit
ad35f9cc82
@ -19,7 +19,9 @@ var api = function(dbot) {
|
|||||||
'time': new Date().getTime(),
|
'time': new Date().getTime(),
|
||||||
'message': message,
|
'message': message,
|
||||||
'tags': tags
|
'tags': tags
|
||||||
}, function() {});
|
}, function(err, notify) {
|
||||||
|
dbot.api.event.emit('new_notify', [ notify, user.primaryNick ]);
|
||||||
|
});
|
||||||
|
|
||||||
var channel = dbot.instance.connections[server].channels[cName];
|
var channel = dbot.instance.connections[server].channels[cName];
|
||||||
var ops = _.filter(channel.nicks, function(user) {
|
var ops = _.filter(channel.nicks, function(user) {
|
||||||
|
@ -15,7 +15,6 @@ var report = function(dbot) {
|
|||||||
next();
|
next();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
});
|
});
|
||||||
dbot.api.event.emit('new_notify', [ message ]);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
'formatNotify': function(type, server, user, channel, message) {
|
'formatNotify': function(type, server, user, channel, message) {
|
||||||
|
Loading…
Reference in New Issue
Block a user