diff options
Diffstat (limited to 'src/core/command.c')
| -rw-r--r-- | src/core/command.c | 9 |
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")) { |
