mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +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):
|
def __call__(self, irc, msg):
|
||||||
if self.started:
|
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)
|
return callbacks.Privmsg.__call__(self, irc, msg)
|
||||||
else:
|
else:
|
||||||
debug.msg('Enforcer plugin not started. '
|
debug.msg('Enforcer plugin not started. '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user