Mercurial > prosody-modules
comparison mod_swedishchef/mod_swedishchef.lua @ 985:93ef813dfd06
mod_swedishchef: Use newer config API
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 24 Apr 2013 09:34:22 +0200 |
| parents | 1fb5b8c20004 |
| children | 7dbde05b48a9 |
comparison
equal
deleted
inserted
replaced
| 984:c4995b56c358 | 985:93ef813dfd06 |
|---|---|
| 2 -- Copyright (C) 2009 Matthew Wild | 2 -- Copyright (C) 2009 Matthew Wild |
| 3 -- | 3 -- |
| 4 -- This project is MIT/X11 licensed. Please see the | 4 -- This project is MIT/X11 licensed. Please see the |
| 5 -- COPYING file in the source package for more information. | 5 -- COPYING file in the source package for more information. |
| 6 -- | 6 -- |
| 7 local st = require "util.stanza"; | |
| 8 | 7 |
| 9 local trigger_string = config.get(module.host, "core", "swedishchef_trigger"); | 8 local trigger_string = module:get_option_string("swedishchef_trigger"); |
| 10 trigger_string = (trigger_string and trigger_string .. " ") or ""; | 9 trigger_string = (trigger_string and trigger_string .. " ") or ""; |
| 11 | 10 |
| 12 local chef = { | 11 local chef = { |
| 13 { th = "t" }, | 12 { th = "t" }, |
| 14 | 13 |
