mirror of https://github.com/Mikaela/Limnoria.git
Added permbans command.
This commit is contained in:
parent
0937ba22ca
commit
032fbe4ae2
|
@ -401,6 +401,18 @@ class Channel(callbacks.Privmsg):
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
unpermban = privmsgs.checkChannelCapability(unpermban, 'op')
|
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):
|
def ignore(self, irc, msg, args, channel):
|
||||||
"""[<channel>] <nick|hostmask>
|
"""[<channel>] <nick|hostmask>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue