From 032fbe4ae23f3c89a9eb8a573f7c17e42a2adb04 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 1 Jul 2004 17:55:29 +0000 Subject: [PATCH] Added permbans command. --- src/Channel.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Channel.py b/src/Channel.py index 43744ff2d..6dc12dc5c 100755 --- a/src/Channel.py +++ b/src/Channel.py @@ -401,6 +401,18 @@ class Channel(callbacks.Privmsg): irc.replySuccess() unpermban = privmsgs.checkChannelCapability(unpermban, 'op') + def permbans(self, irc, msg, args, 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): """[]