From 7815183927ecb914de430a5d64f9df27a48f49ae Mon Sep 17 00:00:00 2001 From: "info@mode42.com" Date: Sun, 9 Aug 2026 12:42:59 +0000 Subject: now including entertain/chess --- src/core/networks.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'src/core/networks.c') 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; -- cgit v1.3.1