Fix mistake in user notification.

This commit is contained in:
Krytarik Raido 2022-03-12 05:23:04 +01:00
parent f02c24868a
commit 2c94abb49a

View File

@ -4394,7 +4394,7 @@ class ChanTracker(callbacks.Plugin, plugins.ChannelDBHandler):
elif self.registryValue('proxyMsgOnly', channel=channel, network=irc.network): elif self.registryValue('proxyMsgOnly', channel=channel, network=irc.network):
bm = '' bm = ''
if len(bm): if len(bm):
bm.replace('$channel', channel) bm = bm.replace('$channel', channel)
log.info('[%s] warned %s with: %s' % (channel, nick, bm)) log.info('[%s] warned %s with: %s' % (channel, nick, bm))
if self.registryValue('banNotice', channel=channel, network=irc.network): if self.registryValue('banNotice', channel=channel, network=irc.network):
i.lowQueue.enqueue(ircmsgs.notice(nick, bm)) i.lowQueue.enqueue(ircmsgs.notice(nick, bm))
@ -4414,7 +4414,7 @@ class ChanTracker(callbacks.Plugin, plugins.ChannelDBHandler):
elif self.registryValue('proxyMsgOnly', channel=channel, network=irc.network): elif self.registryValue('proxyMsgOnly', channel=channel, network=irc.network):
qm = '' qm = ''
if len(qm): if len(qm):
qm.replace('$channel', channel) qm = qm.replace('$channel', channel)
log.info('[%s] warned %s with: %s' % (channel, nick, qm)) log.info('[%s] warned %s with: %s' % (channel, nick, qm))
if self.registryValue('quietNotice', channel=channel, network=irc.network): if self.registryValue('quietNotice', channel=channel, network=irc.network):
i.lowQueue.enqueue(ircmsgs.notice(nick, qm)) i.lowQueue.enqueue(ircmsgs.notice(nick, qm))