forked from GitHub/dbot
rChannel [#507]
This commit is contained in:
parent
5f3c06a7a0
commit
520be40504
@ -150,6 +150,15 @@ var users = function(dbot) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}.bind(this));
|
}.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) {
|
dbot.instance.addListener('366', 'users', function(event) {
|
||||||
this.api.getChannel(event.server, event.channel.name, function(channel) {
|
this.api.getChannel(event.server, event.channel.name, function(channel) {
|
||||||
|
Loading…
Reference in New Issue
Block a user