Channel: Use exact hostmask if provided.

This commit is contained in:
Valentin Lorentz 2012-10-06 17:58:44 +00:00
parent fe9c28ffa8
commit c8dc3eac16
1 changed files with 1 additions and 1 deletions

View File

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