mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Changed the *permban* commands to *ban* commands.
This commit is contained in:
parent
4be774363a
commit
9ea8a9e55b
@ -429,7 +429,7 @@ class Channel(callbacks.Privmsg):
|
|||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
unlobotomize = privmsgs.checkChannelCapability(unlobotomize, 'op')
|
unlobotomize = privmsgs.checkChannelCapability(unlobotomize, 'op')
|
||||||
|
|
||||||
def permban(self, irc, msg, args, channel):
|
def ban(self, irc, msg, args, channel):
|
||||||
"""[<channel>] <nick|hostmask>
|
"""[<channel>] <nick|hostmask>
|
||||||
|
|
||||||
If you have the #channel,op capability, this will effect a permanent
|
If you have the #channel,op capability, this will effect a permanent
|
||||||
@ -449,9 +449,9 @@ class Channel(callbacks.Privmsg):
|
|||||||
c.addBan(banmask)
|
c.addBan(banmask)
|
||||||
ircdb.channels.setChannel(channel, c)
|
ircdb.channels.setChannel(channel, c)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
permban = privmsgs.checkChannelCapability(permban, 'op')
|
ban = privmsgs.checkChannelCapability(ban, 'op')
|
||||||
|
|
||||||
def unpermban(self, irc, msg, args, channel):
|
def unban(self, irc, msg, args, channel):
|
||||||
"""[<channel>] <hostmask>
|
"""[<channel>] <hostmask>
|
||||||
|
|
||||||
If you have the #channel,op capability, this will remove the permanent
|
If you have the #channel,op capability, this will remove the permanent
|
||||||
@ -463,19 +463,19 @@ class Channel(callbacks.Privmsg):
|
|||||||
c.removeBan(banmask)
|
c.removeBan(banmask)
|
||||||
ircdb.channels.setChannel(channel, c)
|
ircdb.channels.setChannel(channel, c)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
unpermban = privmsgs.checkChannelCapability(unpermban, 'op')
|
unban = privmsgs.checkChannelCapability(unban, 'op')
|
||||||
|
|
||||||
def permbans(self, irc, msg, args, channel):
|
def bans(self, irc, msg, args, channel):
|
||||||
"""[<channel>]
|
"""[<channel>]
|
||||||
|
|
||||||
If you have the #channel,op capability, this will show you the
|
If you have the #channel,op capability, this will show you the
|
||||||
current permbans on #channel.
|
current bans on #channel.
|
||||||
"""
|
"""
|
||||||
c = ircdb.channels.getChannel(channel)
|
c = ircdb.channels.getChannel(channel)
|
||||||
if c.bans:
|
if c.bans:
|
||||||
irc.reply(utils.commaAndify(map(utils.dqrepr, c.bans)))
|
irc.reply(utils.commaAndify(map(utils.dqrepr, c.bans)))
|
||||||
else:
|
else:
|
||||||
irc.reply('There are currently no permbans on %s' % channel)
|
irc.reply('There are currently no permanent bans 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
Block a user