From aaa924d9d8786eb4c12ea2fc9b23b703bf8ed941 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 24 Dec 2013 00:29:00 +0000 Subject: [PATCH] should fix channel ignores --- modules/ignore/ignore.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ignore/ignore.js b/modules/ignore/ignore.js index 7f52078..e87cf2a 100644 --- a/modules/ignore/ignore.js +++ b/modules/ignore/ignore.js @@ -209,7 +209,7 @@ var ignore = function(dbot) { if(!_.include(channel.ignores, module)) { channel.ignores.push(module); this.db.save('channel_ignores', channel.id, channel, function(err) { - dbot.instance.ignoreTag(channel, module); + dbot.instance.ignoreTag(channel.name, module); event.reply(dbot.t('ignoring_channel', { 'module': module, 'channel': channelName @@ -241,7 +241,7 @@ var ignore = function(dbot) { if(channel && _.include(channel.ignores, module)) { channel.ignores = _.without(channel.ignores, module); this.db.save('channel_ignores', channel.id, channel, function(err) { - dbot.instance.removeIgnore(channel, module); + dbot.instance.removeIgnore(channel.name, module); event.reply(dbot.t('unignoring_channel', { 'module': module, 'channel': channelName @@ -284,7 +284,7 @@ var ignore = function(dbot) { this.db.scan('channel_ignores', function(channel) { _.each(channel.ignores, function(module) { - dbot.instance.ignoreTag(channel, module); + dbot.instance.ignoreTag(channel.name, module); }); }, function(err) { }); };