From 2c94abb49a08ea47ab718018dfcaeaf8bf569d5f Mon Sep 17 00:00:00 2001 From: Krytarik Raido Date: Sat, 12 Mar 2022 05:23:04 +0100 Subject: [PATCH] Fix mistake in user notification. --- plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index c4b6373..f978b02 100644 --- a/plugin.py +++ b/plugin.py @@ -4394,7 +4394,7 @@ class ChanTracker(callbacks.Plugin, plugins.ChannelDBHandler): elif self.registryValue('proxyMsgOnly', channel=channel, network=irc.network): bm = '' if len(bm): - bm.replace('$channel', channel) + bm = bm.replace('$channel', channel) log.info('[%s] warned %s with: %s' % (channel, nick, bm)) if self.registryValue('banNotice', channel=channel, network=irc.network): 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): qm = '' if len(qm): - qm.replace('$channel', channel) + qm = qm.replace('$channel', channel) log.info('[%s] warned %s with: %s' % (channel, nick, qm)) if self.registryValue('quietNotice', channel=channel, network=irc.network): i.lowQueue.enqueue(ircmsgs.notice(nick, qm))