From e418d6e3c76e9cbee98b42d600f314712955955a Mon Sep 17 00:00:00 2001 From: Nicolas Coevoet Date: Sat, 19 Oct 2013 00:59:25 +0200 Subject: [PATCH] forgot to update plugin.py, in order to follow config.py opCommand --- plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index 2ba676d..5aa0725 100644 --- a/plugin.py +++ b/plugin.py @@ -1455,13 +1455,13 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler): if not irc.nick in irc.state.channels[channel].ops and not chan.opAsked and self.registryValue('keepOp',channel=channel) and chan.syn: # chan.syn is necessary, otherwise, bot can't call owner if rights missed ( see doNotice ) chan.opAsked = True - irc.sendMsg(ircmsgs.IrcMsg(self.registryValue('opCommand') % (channel,irc.nick))) + irc.sendMsg(ircmsgs.IrcMsg(self.registryValue('opCommand').replace('$channel',channel).replace('$nick',irc.nick))) retickle = True if len(chan.queue): if not irc.nick in irc.state.channels[channel].ops and not chan.opAsked: # pending actions and not opped chan.opAsked = True - irc.sendMsg(ircmsgs.IrcMsg(self.registryValue('opCommand') % (channel,irc.nick))) + irc.sendMsg(ircmsgs.IrcMsg(self.registryValue('opCommand').replace('$channel',channel).replace('$nick',irc.nick))) retickle = True elif irc.nick in irc.state.channels[channel].ops: L = []