forgot to update plugin.py, in order to follow config.py opCommand

This commit is contained in:
Nicolas Coevoet 2013-10-19 00:59:25 +02:00
parent 2b59c702fb
commit e418d6e3c7

View File

@ -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: 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.syn is necessary, otherwise, bot can't call owner if rights missed ( see doNotice )
chan.opAsked = True 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 retickle = True
if len(chan.queue): if len(chan.queue):
if not irc.nick in irc.state.channels[channel].ops and not chan.opAsked: if not irc.nick in irc.state.channels[channel].ops and not chan.opAsked:
# pending actions and not opped # pending actions and not opped
chan.opAsked = True 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 retickle = True
elif irc.nick in irc.state.channels[channel].ops: elif irc.nick in irc.state.channels[channel].ops:
L = [] L = []