From 270d9017e9dec35ed82b7f4bc6fb40b814e8b339 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sat, 10 Oct 2020 17:57:34 +0200 Subject: degesch: improve ad-hoc IRC parsers in plugins --- plugins/degesch/censor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/degesch/censor.lua') diff --git a/plugins/degesch/censor.lua b/plugins/degesch/censor.lua index d28ca83..a768aed 100644 --- a/plugins/degesch/censor.lua +++ b/plugins/degesch/censor.lua @@ -49,7 +49,7 @@ degesch.setup_config { local censor = function (line) -- Taking a shortcut to avoid lengthy message reassembly - local start, text = line:match ("^(.- PRIVMSG .-:)(.*)$") + local start, text = line:match ("^(.- PRIVMSG .- :)(.*)$") local ctcp, rest = text:match ("^(\x01%g+ )(.*)") text = ctcp and ctcp .. "\x0301,01" .. rest or "\x0301,01" .. text return start .. text -- cgit v1.2.3-54-g00ecf