BadWords: Add support for +h.

This commit is contained in:
Valentin Lorentz 2012-04-15 21:02:42 +00:00
parent e8627edbb9
commit 945b34d519

View File

@ -78,7 +78,8 @@ class BadWords(callbacks.Privmsg):
s = ircutils.stripFormatting(msg.args[1])
if ircutils.isChannel(channel) and self.registryValue('kick', channel):
if self.regexp.search(s):
if irc.nick in irc.state.channels[channel].ops:
if irc.nick in irc.state.channels[channel].ops or \
irc.nick in irc.state.channels[channel].halfops:
message = self.registryValue('kick.message', channel)
irc.queueMsg(ircmsgs.kick(channel, msg.nick, message))
else: