Use ircutils.nickEqual instead of ==.

This commit is contained in:
Jeremy Fincher 2003-10-06 13:00:22 +00:00
parent 1e28e4f00a
commit 1a594b6dff

View File

@ -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. '