diff --git a/channel.js b/channel.js index a2e7a368..68efd2bc 100644 --- a/channel.js +++ b/channel.js @@ -458,7 +458,7 @@ Channel.prototype.tryIPBan = function(actor, name, range) { return false; // Update database ban table - return this.server.db.channelBan(chan.name, ip, name, actor.name); + return chan.server.db.channelBan(chan.name, ip, name, actor.name); }); var chan = this;