diff options
| author | info@mode42.com <info@mode42.com> | 2026-08-09 12:42:59 +0000 |
|---|---|---|
| committer | info@mode42.com <info@mode42.com> | 2026-08-09 12:42:59 +0000 |
| commit | 7815183927ecb914de430a5d64f9df27a48f49ae (patch) | |
| tree | 1f75384f4b54998476f9d2e8219b8570c3f8f650 /src/core/networks.c | |
| parent | e1730d8012fca0a712de588285342f7ad10dd804 (diff) | |
now including entertain/chess
Diffstat (limited to 'src/core/networks.c')
| -rw-r--r-- | src/core/networks.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/core/networks.c b/src/core/networks.c index f61479e..dfc1370 100644 --- a/src/core/networks.c +++ b/src/core/networks.c @@ -1,4 +1,5 @@ #include "hybbx/networks.h" +#include "hybbx/entertain_config.h" #include "hybbx/instance.h" #include "hybbx/config.h" #include "hybbx/util.h" @@ -54,7 +55,6 @@ void hybbx_networks_config_defaults(hybbx_networks_config_t *networks) networks->websocket = 0; networks->circuit = 1; networks->mains_proxy = 0; - networks->entertain = 0; } void hybbx_networks_config_apply(hybbx_networks_config_t *networks, @@ -107,13 +107,8 @@ void hybbx_networks_config_apply(hybbx_networks_config_t *networks, "mains_proxy", 0); } - if (networks_has_key(config, "entertain")) { - networks->entertain = hybbx_config_get_bool(config, "networks", - "entertain", 0); - } - hybbx_log_info("[networks] telnet=%s ssh=%s ax25=%s baycom=%s ardop=%s " - "crdop=%s websocket=%s circuit=%s mains_proxy=%s entertain=%s", + "crdop=%s websocket=%s circuit=%s mains_proxy=%s", hybbx_bool_to_string(networks->telnet), hybbx_bool_to_string(networks->ssh), hybbx_bool_to_string(networks->ax25), @@ -122,8 +117,7 @@ void hybbx_networks_config_apply(hybbx_networks_config_t *networks, hybbx_bool_to_string(networks->crdop), hybbx_bool_to_string(networks->websocket), hybbx_bool_to_string(networks->circuit), - hybbx_bool_to_string(networks->mains_proxy), - hybbx_bool_to_string(networks->entertain)); + hybbx_bool_to_string(networks->mains_proxy)); } int hybbx_networks_is_static_transport(const char *plugin_name) @@ -195,7 +189,8 @@ int hybbx_networks_transport_wanted(const char *plugin_name, } if (str_ieq(plugin_name, "entertain")) { - return networks->entertain; + (void)networks; + return hybbx_entertain_enabled(); } return 0; |
