From 42ef99a1526e496cf61910c97d6819cddc8c25bd Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 19 Jan 2009 21:13:02 +0000 Subject: [PATCH] Use getBanmask for Channel.{ignore,ban}.add --- plugins/Channel/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Channel/plugin.py b/plugins/Channel/plugin.py index ec44d1037..dbaf6dc51 100644 --- a/plugins/Channel/plugin.py +++ b/plugins/Channel/plugin.py @@ -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): """[] @@ -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): """[]