From ebd56c576af59781b10fafbbacb3b493d68db505 Mon Sep 17 00:00:00 2001 From: Nicolas Coevoet Date: Sat, 6 Dec 2014 09:22:19 +0100 Subject: [PATCH] notify user on ub --perm that he should use channel ban remove if the ban is already removed --- plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 70e8e3d..cc529eb 100644 --- a/plugin.py +++ b/plugin.py @@ -1526,7 +1526,10 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler): perm = True b = self._removes(irc,msg,args,channel,'b',items,perm) if not msg.nick == irc.nick and not b: - irc.reply('unknown patterns, already removed or unsupported mode') + if perm: + irc.reply('unknown patterns or already removed, you may try "channel ban remove %s %s"' % (channel,len(items) == 1 ? items[0] : '')) + else: + irc.reply('unknown patterns, already removed or unsupported mode') ub = wrap(ub,['op',getopts({'perm':''}),many('something')]) def ui (self, irc, msg, args, channel, items):