From c8dc3eac1667a5e05b8c1e62e678041642071083 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 6 Oct 2012 17:58:44 +0000 Subject: [PATCH] Channel: Use exact hostmask if provided. --- plugins/Channel/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Channel/plugin.py b/plugins/Channel/plugin.py index 02c6c2ae1..72cf5c23d 100644 --- a/plugins/Channel/plugin.py +++ b/plugins/Channel/plugin.py @@ -548,7 +548,7 @@ class Channel(callbacks.Plugin): c.addBan(banmask, expires) ircdb.channels.setChannel(channel, c) irc.replySuccess() - add = wrap(add, ['op', 'banmask', additional('expiry', 0)]) + add = wrap(add, ['op', first('hostmask', 'banmask'), additional('expiry', 0)]) @internationalizeDocstring def remove(self, irc, msg, args, channel, banmask):