Added permbans command.

This commit is contained in:
Jeremy Fincher 2004-07-01 17:55:29 +00:00
parent 0937ba22ca
commit 032fbe4ae2

View File

@ -401,6 +401,18 @@ class Channel(callbacks.Privmsg):
irc.replySuccess()
unpermban = privmsgs.checkChannelCapability(unpermban, 'op')
def permbans(self, irc, msg, args, channel):
"""[<channel>]
If you have the #channel,op capability, this will show you the
current permbans on #channel.
"""
c = ircdb.channels.getChannel(channel)
if c.bans:
irc.reply(utils.commaAndify(map(utils.dqrepr, c.bans)))
else:
irc.reply('There are currently no permbans on %s' % channel)
def ignore(self, irc, msg, args, channel):
"""[<channel>] <nick|hostmask>