diff --git a/plugins/Channel/plugin.py b/plugins/Channel/plugin.py index 09cf7d2d2..def4557a8 100644 --- a/plugins/Channel/plugin.py +++ b/plugins/Channel/plugin.py @@ -434,6 +434,15 @@ class Channel(callbacks.Plugin): ('isGranted', _('unban someone')), additional('hostmask')]) + @internationalizeDocstring + def listbans(self, irc, msg, args, channel): + """[] + + List all bans on the channel. + If is not given, it defaults to the current channel.""" + irc.replies(irc.state.channels[channel].bans or [_('No bans.')]) + listbans = wrap(listbans, ['channel']) + @internationalizeDocstring def invite(self, irc, msg, args, channel, nick): """[]