Use getBanmask for Channel.{ignore,ban}.add

This commit is contained in:
James Vega 2009-01-19 21:13:02 +00:00
parent abb83d4863
commit 42ef99a152

View File

@ -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>