notify user on ub --perm that he should use channel ban remove if the ban is already removed

This commit is contained in:
Nicolas Coevoet 2014-12-06 09:22:19 +01:00
parent d2ce65d2d7
commit ebd56c576a

View File

@ -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):