# HG changeset patch # User Kim Alvefur # Date 1507063647 -7200 # Node ID d93a73282a93392d36556b4c167ed1511f38c097 # Parent c53cc1ae47888f2bde81e89841b99428bc6fc4fa mod_swedishchef: Fix logging and traceback uncovered by util.format (thanks Kafkei) diff -r c53cc1ae4788 -r d93a73282a93 mod_swedishchef/mod_swedishchef.lua --- a/mod_swedishchef/mod_swedishchef.lua Fri Sep 29 09:18:24 2017 +0100 +++ b/mod_swedishchef/mod_swedishchef.lua Tue Oct 03 22:47:27 2017 +0200 @@ -64,7 +64,7 @@ body = body:get_text(); if body and (body:find(trigger_string, 1, true) == 1) then - module:log("debug", body:find(trigger_string, 1, true)); + module:log("debug", "Found trigger: %s", body:match(trigger_string, 1, true)); stanza[bodyindex][1] = swedish(body:gsub("^" .. trigger_string, "", 1)); end end