forked from GitHub/dbot
rChannel [#507]
This commit is contained in:
parent
5f3c06a7a0
commit
520be40504
@ -151,6 +151,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) {
|
||||||
var checkChannelUsers = function(channel) {
|
var checkChannelUsers = function(channel) {
|
||||||
|
Loading…
Reference in New Issue
Block a user