Software /
code /
prosody-modules
Comparison
mod_swedishchef/mod_swedishchef.lua @ 2778:2615facc461b
mod_swedishchef: Add configuration toggle
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 29 Sep 2017 09:18:05 +0100 |
parent | 1343:7dbde05b48a9 |
child | 2779:c53cc1ae4788 |
comparison
equal
deleted
inserted
replaced
2777:55a7ef2fb628 | 2778:2615facc461b |
---|---|
67 module:log("debug", body:find(trigger_string, 1, true)); | 67 module:log("debug", body:find(trigger_string, 1, true)); |
68 stanza[bodyindex][1] = swedish(body:gsub("^" .. trigger_string, "", 1)); | 68 stanza[bodyindex][1] = swedish(body:gsub("^" .. trigger_string, "", 1)); |
69 end | 69 end |
70 end | 70 end |
71 | 71 |
72 module:hook("message/bare", check_message); | 72 if module:get_option_boolean("swedish_chef_enabled", true) then |
73 module:hook("message/bare", check_message); | |
74 end | |
73 | 75 |