mod_swedishchef: Add configuration toggle
authorMatthew Wild <mwild1@gmail.com>
Fri, 29 Sep 2017 09:18:05 +0100
changeset 2782 2615facc461b
parent 2781 55a7ef2fb628
child 2783 c53cc1ae4788
mod_swedishchef: Add configuration toggle
mod_swedishchef/mod_swedishchef.lua
--- 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