Channel: Fix 'ignore remove' converter to work like 'ignore add'.

This commit is contained in:
Valentin Lorentz 2016-02-23 19:12:22 +00:00
parent b34ee949cb
commit 0b66abaf5b

View File

@ -663,7 +663,7 @@ class Channel(callbacks.Plugin):
@internationalizeDocstring @internationalizeDocstring
def remove(self, irc, msg, args, channel, banmask): def remove(self, irc, msg, args, channel, banmask):
"""[<channel>] <hostmask> """[<channel>] <nick|hostmask>
If you have the #channel,op capability, this will remove the If you have the #channel,op capability, this will remove the
persistent ignore on <hostmask> in the channel. <channel> is only persistent ignore on <hostmask> in the channel. <channel> is only
@ -676,7 +676,7 @@ class Channel(callbacks.Plugin):
irc.replySuccess() irc.replySuccess()
except KeyError: except KeyError:
irc.error(_('There are no ignores for that hostmask.')) irc.error(_('There are no ignores for that hostmask.'))
remove = wrap(remove, ['op', 'hostmask']) remove = wrap(remove, ['op', 'banmask'])
@internationalizeDocstring @internationalizeDocstring
def list(self, irc, msg, args, channel): def list(self, irc, msg, args, channel):