summaryrefslogtreecommitdiff
path: root/plugins/degesch/censor.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/degesch/censor.lua')
-rw-r--r--plugins/degesch/censor.lua2
1 files changed, 1 insertions, 1 deletions
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