Mercurial > prosody-hg
comparison core/moduleapi.lua @ 5377:898454038524
core.*: Complete removal of all traces of the "core" section and section-related code.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 23 Mar 2013 02:33:15 +0100 |
| parents | 854f6d9aee2d |
| children | a5fcda77c6b1 |
comparison
equal
deleted
inserted
replaced
| 5376:ba9be0be4bbb | 5377:898454038524 |
|---|---|
| 165 end | 165 end |
| 166 return unpack(data_array); | 166 return unpack(data_array); |
| 167 end | 167 end |
| 168 | 168 |
| 169 function api:get_option(name, default_value) | 169 function api:get_option(name, default_value) |
| 170 local value = config.get(self.host, self.name, name); | 170 local value = config.get(self.host, name); |
| 171 if value == nil then | 171 if value == nil then |
| 172 value = config.get(self.host, "core", name); | 172 value = default_value; |
| 173 if value == nil then | |
| 174 value = default_value; | |
| 175 end | |
| 176 end | 173 end |
| 177 return value; | 174 return value; |
| 178 end | 175 end |
| 179 | 176 |
| 180 function api:get_option_string(name, default_value) | 177 function api:get_option_string(name, default_value) |
