3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-30 16:09:27 +01:00

curr chan ban

This commit is contained in:
reality 2014-07-21 21:31:04 +00:00
parent 7b3489225c
commit 70040a0ed3

View File

@ -116,7 +116,7 @@ var commands = function(dbot) {
banee = event.input[2], banee = event.input[2],
reason = event.input[3], reason = event.input[3],
adminChannel = dbot.config.servers[server].admin_channel, adminChannel = dbot.config.servers[server].admin_channel,
channels = dbot.config.servers[server].channels, channels = _.keys(dbot.instance.connections.[server].channels),
network = event.server; network = event.server;
if(this.config.network_name[event.server]) { if(this.config.network_name[event.server]) {