mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 14:49:21 +01:00
BadWords: Add support for +h.
This commit is contained in:
parent
e8627edbb9
commit
945b34d519
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user