mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-04-26 04:51:07 -05:00
minors improvement by Krytarik Raido
This commit is contained in:
parent
17010410e1
commit
2c69f1bc05
12
plugin.py
12
plugin.py
@ -3226,18 +3226,14 @@ class ChanTracker(callbacks.Plugin, plugins.ChannelDBHandler):
|
||||
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.IrcMsg(
|
||||
'NOTICE @%s :%s' % (logChannel, message)))
|
||||
i.lowQueue.enqueue(ircmsgs.notice(logChannel, message))
|
||||
else:
|
||||
i.lowQueue.enqueue(ircmsgs.IrcMsg(
|
||||
'PRIVMSG @%s :%s' % (logChannel, message)))
|
||||
i.lowQueue.enqueue(ircmsgs.privmsg(logChannel, message))
|
||||
else:
|
||||
if self.registryValue('announceWithNotice', channel=channel):
|
||||
i.lowQueue.enqueue(ircmsgs.IrcMsg(
|
||||
'NOTICE %s :%s' % (logChannel, message)))
|
||||
i.lowQueue.enqueue(ircmsgs.notice(logChannel, message))
|
||||
else:
|
||||
i.lowQueue.enqueue(ircmsgs.IrcMsg(
|
||||
'PRIVMSG %s :%s' % (logChannel, message)))
|
||||
i.lowQueue.enqueue(ircmsgs.privmsg(logChannel, message))
|
||||
elif len(logChannel) > 0:
|
||||
if self.registryValue('announceWithNotice', channel=channel):
|
||||
i.lowQueue.enqueue(ircmsgs.notice(logChannel, message))
|
||||
|
Loading…
x
Reference in New Issue
Block a user