3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +01:00
This commit is contained in:
reality 2013-06-21 18:40:00 +00:00
parent 5f3c06a7a0
commit 520be40504

View File

@ -150,6 +150,15 @@ var users = function(dbot) {
});
}
}.bind(this));
dbot.instance.addPreEmitHook(function(event, callback) {
if(event.channel) {
this.api.getChannel(event.server, event.channel.name, function(channel) {
event.rChannel = channel;
callback(false);
});
}
}.bind(this));
dbot.instance.addListener('366', 'users', function(event) {
this.api.getChannel(event.server, event.channel.name, function(channel) {