Skip to content

Commit

Permalink
Channel: Implement @listbans.
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Dec 23, 2012
1 parent 6a06ca9 commit c46602d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugins/Channel/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,15 @@ def unban(self, irc, msg, args, channel, hostmask):
('isGranted', _('unban someone')),
additional('hostmask')])

@internationalizeDocstring
def listbans(self, irc, msg, args, channel):
"""[<channel>]
List all bans on the channel.
If <channel> 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):
"""[<channel>] <nick>
Expand Down

0 comments on commit c46602d

Please sign in to comment.