mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Use ircutils.nickEqual instead of ==.
This commit is contained in:
parent
1e28e4f00a
commit
1a594b6dff
@ -222,7 +222,8 @@ class Enforcer(callbacks.Privmsg):
|
||||
|
||||
def __call__(self, irc, msg):
|
||||
if self.started:
|
||||
if msg.nick != self.chanserv and msg.nick != msg.prefix:
|
||||
if ircutils.isUserHostmask(msg.prefix) and \
|
||||
not ircutils.nickEqual(msg.nick, self.chanserv):
|
||||
return callbacks.Privmsg.__call__(self, irc, msg)
|
||||
else:
|
||||
debug.msg('Enforcer plugin not started. '
|
||||
|
Loading…
Reference in New Issue
Block a user