From a989bd16c40e04bba5a5404b0ef0cd22f19d2707 Mon Sep 17 00:00:00 2001 From: "info@mode42.com" Date: Sun, 9 Aug 2026 11:54:17 +0000 Subject: now including entertain/chess --- src/core/command.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/core/command.c') diff --git a/src/core/command.c b/src/core/command.c index 8cd4e5c..3614821 100644 --- a/src/core/command.c +++ b/src/core/command.c @@ -18,7 +18,6 @@ #include "hybbx/password.h" #include "hybbx/traffic.h" #include "hybbx/monitor.h" -#include "hybbx/chess.h" #include "hybbx/util.h" #include @@ -2304,6 +2303,11 @@ hybbx_result_t hybbx_command_dispatch(hybbx_service_t *service, return cmd_rules(service, session); } + /* Plugin command intercept — try all plugins first */ + if (hybbx_service_try_plugin_command(service, session, cmd) == HYBBX_OK) { + return HYBBX_OK; + } + if (str_ieq(cmd->verb, "who") || str_ieq(cmd->verb, "online")) { return cmd_who(service, session); } @@ -2312,9 +2316,6 @@ hybbx_result_t hybbx_command_dispatch(hybbx_service_t *service, return cmd_monitor(service, session, cmd); } - if (str_ieq(cmd->verb, "chess") || str_ieq(cmd->verb, "play")) { - return cmd_chess(service, session, cmd); - } if (str_ieq(cmd->verb, "users")) { -- cgit v1.3.1