mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-04-26 13:01:06 -05:00
Apply the remainder of the changes.
This commit is contained in:
parent
2c69f1bc05
commit
f4cfdf9722
19
plugin.py
19
plugin.py
@ -3222,19 +3222,12 @@ class ChanTracker(callbacks.Plugin, plugins.ChannelDBHandler):
|
||||
# send messages to logChannel if configured for
|
||||
if channel in irc.state.channels:
|
||||
logChannel = self.registryValue('logChannel', channel=channel)
|
||||
i = self.getIrc(irc)
|
||||
if logChannel in irc.state.channels:
|
||||
if logChannel == channel and irc.state.channels[channel].isHalfopPlus(irc.nick) and self.registryValue('keepOp', channel=channel):
|
||||
if self.registryValue('announceWithNotice', channel=channel):
|
||||
i.lowQueue.enqueue(ircmsgs.notice(logChannel, message))
|
||||
else:
|
||||
i.lowQueue.enqueue(ircmsgs.privmsg(logChannel, message))
|
||||
else:
|
||||
if self.registryValue('announceWithNotice', channel=channel):
|
||||
i.lowQueue.enqueue(ircmsgs.notice(logChannel, message))
|
||||
else:
|
||||
i.lowQueue.enqueue(ircmsgs.privmsg(logChannel, message))
|
||||
elif len(logChannel) > 0:
|
||||
if logChannel:
|
||||
i = self.getIrc(irc)
|
||||
if logChannel in irc.state.channels and logChannel == channel \
|
||||
and irc.state.channels[channel].isHalfopPlus(irc.nick) \
|
||||
and self.registryValue('keepOp', channel=channel):
|
||||
logChannel = '@%s' % logChannel
|
||||
if self.registryValue('announceWithNotice', channel=channel):
|
||||
i.lowQueue.enqueue(ircmsgs.notice(logChannel, message))
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user