From 3e19bf603af0ac01f6690afe7cf59702a4a5cc02 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 21 Mar 2025 18:09:05 +0800 Subject: feat(commands): client execute commands (#8) refactor(session): writeChat, unify written chat internal: removed `CChatManager::broadcastMessage`, just use `g_pSessionManager->broadcastChat(msg)` --- src/commandHandler.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/commandHandler.hpp') diff --git a/src/commandHandler.hpp b/src/commandHandler.hpp index 78ab2e5..8d97fd5 100644 --- a/src/commandHandler.hpp +++ b/src/commandHandler.hpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include @@ -32,6 +33,7 @@ class CCommandHandler { // return false if command struct is invalid bool registerCommand(const SCommand &command); SResult newCommand(const std::string &command, const std::string &args) const; + void handleCommand(std::string input, const char ip[INET_ADDRSTRLEN] = {}) const; template struct SMakeCommandArgs { -- cgit v1.2.3