mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-11-27 05:07:30 +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 = {}
|
self.topics = {}
|
||||||
chanserv = privmsgs.getArgs(args, required=0, optional=1)
|
chanserv = privmsgs.getArgs(args, required=0, optional=1)
|
||||||
self.chanserv = chanserv or 'ChanServ'
|
self.chanserv = ircutils.IrcString(chanserv or 'ChanServ')
|
||||||
self.started = True
|
self.started = True
|
||||||
for channel in irc.state.channels:
|
for channel in irc.state.channels:
|
||||||
irc.queueMsg(ircmsgs.topic(channel))
|
irc.queueMsg(ircmsgs.topic(channel))
|
||||||
@ -244,7 +244,7 @@ class Enforcer(callbacks.Privmsg, plugins.Configurable):
|
|||||||
def __call__(self, irc, msg):
|
def __call__(self, irc, msg):
|
||||||
if self.started:
|
if self.started:
|
||||||
if ircutils.isUserHostmask(msg.prefix) and \
|
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)
|
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