From f101f253b403e4b36a6c7b59ab9a6ef51df5ad71 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 2 Jul 2009 15:43:27 +0100 Subject: mod_pep: Escape + in pattern --- plugins/mod_pep.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index 429c8b95..0be681fb 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -193,7 +193,7 @@ module:hook("iq/bare/disco", function(event) local notify = {}; for _, feature in pairs(disco.tags) do if feature.name == "feature" and feature.attr.var then - local nfeature = feature.attr.var:match("^(.*)+notify$"); + local nfeature = feature.attr.var:match("^(.*)%+notify$"); if nfeature then notify[nfeature] = true; end end end -- cgit v1.2.3