Software /
code /
prosody
Comparison
net/server.lua @ 7544:fb68aad9dc4d
net.server: Only update configuration if server backend supports changing settings
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 10 Aug 2016 16:50:13 +0200 |
parent | 7543:23a8a26e8912 |
child | 7545:0941b3ab77c0 |
comparison
equal
deleted
inserted
replaced
7543:23a8a26e8912 | 7544:fb68aad9dc4d |
---|---|
87 return false, "signal hooking not supported" | 87 return false, "signal hooking not supported" |
88 end | 88 end |
89 end | 89 end |
90 end | 90 end |
91 | 91 |
92 if prosody then | 92 if prosody and set_config then |
93 local config_get = require "core.configmanager".get; | 93 local config_get = require "core.configmanager".get; |
94 local function load_config() | 94 local function load_config() |
95 local settings = config_get("*", "network_settings") or {}; | 95 local settings = config_get("*", "network_settings") or {}; |
96 return set_config(settings); | 96 return set_config(settings); |
97 end | 97 end |