mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Wasn't using an IrcString for the chanserv nick.
This commit is contained in:
parent
5f4a541fe1
commit
1687b3f916
@ -95,7 +95,7 @@ class Enforcer(callbacks.Privmsg, plugins.Configurable):
|
||||
"""
|
||||
self.topics = {}
|
||||
chanserv = privmsgs.getArgs(args, required=0, optional=1)
|
||||
self.chanserv = chanserv or 'ChanServ'
|
||||
self.chanserv = ircutils.IrcString(chanserv or 'ChanServ')
|
||||
self.started = True
|
||||
for channel in irc.state.channels:
|
||||
irc.queueMsg(ircmsgs.topic(channel))
|
||||
@ -244,7 +244,7 @@ class Enforcer(callbacks.Privmsg, plugins.Configurable):
|
||||
def __call__(self, irc, msg):
|
||||
if self.started:
|
||||
if ircutils.isUserHostmask(msg.prefix) and \
|
||||
not ircutils.nickEqual(msg.nick, self.chanserv):
|
||||
not 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