mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11: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)
|
||||
ircdb.channels.setChannel(channel, c)
|
||||
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):
|
||||
"""[<channel>] <hostmask>
|
||||
@ -530,7 +530,7 @@ class Channel(callbacks.Plugin):
|
||||
c.addIgnore(banmask, expires)
|
||||
ircdb.channels.setChannel(channel, c)
|
||||
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):
|
||||
"""[<channel>] <hostmask>
|
||||
|
Loading…
Reference in New Issue
Block a user