Changeset

2778:2615facc461b

mod_swedishchef: Add configuration toggle
author Matthew Wild <mwild1@gmail.com>
date Fri, 29 Sep 2017 09:18:05 +0100
parents 2777:55a7ef2fb628
children 2779:c53cc1ae4788
files mod_swedishchef/mod_swedishchef.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_swedishchef/mod_swedishchef.lua	Tue Sep 26 17:51:09 2017 +0100
+++ b/mod_swedishchef/mod_swedishchef.lua	Fri Sep 29 09:18:05 2017 +0100
@@ -69,5 +69,7 @@
 	end
 end
 
-module:hook("message/bare", check_message);
+if module:get_option_boolean("swedish_chef_enabled", true) then
+	module:hook("message/bare", check_message);
+end