mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Use getBanmask for Channel.{ignore,ban}.add
This commit is contained in:
parent
abb83d4863
commit
42ef99a152
@ -474,7 +474,7 @@ class Channel(callbacks.Plugin):
|
|||||||
c.addBan(banmask, expires)
|
c.addBan(banmask, expires)
|
||||||
ircdb.channels.setChannel(channel, c)
|
ircdb.channels.setChannel(channel, c)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
add = wrap(add, ['op', 'hostmask', additional('expiry', 0)])
|
add = wrap(add, ['op', 'banmask', additional('expiry', 0)])
|
||||||
|
|
||||||
def remove(self, irc, msg, args, channel, banmask):
|
def remove(self, irc, msg, args, channel, banmask):
|
||||||
"""[<channel>] <hostmask>
|
"""[<channel>] <hostmask>
|
||||||
@ -530,7 +530,7 @@ class Channel(callbacks.Plugin):
|
|||||||
c.addIgnore(banmask, expires)
|
c.addIgnore(banmask, expires)
|
||||||
ircdb.channels.setChannel(channel, c)
|
ircdb.channels.setChannel(channel, c)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
add = wrap(add, ['op', 'hostmask', additional('expiry', 0)])
|
add = wrap(add, ['op', 'banmask', additional('expiry', 0)])
|
||||||
|
|
||||||
def remove(self, irc, msg, args, channel, banmask):
|
def remove(self, irc, msg, args, channel, banmask):
|
||||||
"""[<channel>] <hostmask>
|
"""[<channel>] <hostmask>
|
||||||
|
Loading…
Reference in New Issue
Block a user