summaryrefslogtreecommitdiff
path: root/src/core/command.c
diff options
context:
space:
mode:
authorinfo@mode42.com <info@mode42.com>2026-08-09 11:54:17 +0000
committerinfo@mode42.com <info@mode42.com>2026-08-09 11:54:17 +0000
commita989bd16c40e04bba5a5404b0ef0cd22f19d2707 (patch)
tree604a0439c7d8c022cbd483d62bdc2cfc1c8d18f8 /src/core/command.c
parenta72e5ea7558e5172c08d397d6f1e0e0f9273e694 (diff)
now including entertain/chess
Diffstat (limited to 'src/core/command.c')
-rw-r--r--src/core/command.c9
1 files changed, 5 insertions, 4 deletions
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 <stdio.h>
@@ -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")) {
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com