summaryrefslogtreecommitdiff
path: root/src/commandHandler.hpp
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-04-04 11:53:03 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-04-07 16:32:07 +0800
commit4c904905f5f0667786d4c4b32d150b3d4328cfc2 (patch)
treea397604070be947ea051f0db3555c34e604686df /src/commandHandler.hpp
parent48c6f2384592c42a0fdbb6e420c77f6e10209f24 (diff)
session: use std::string for m_ip instead of c char
Diffstat (limited to 'src/commandHandler.hpp')
-rw-r--r--src/commandHandler.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commandHandler.hpp b/src/commandHandler.hpp
index 8d97fd5..a69011e 100644
--- a/src/commandHandler.hpp
+++ b/src/commandHandler.hpp
@@ -33,7 +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;
+ void handleCommand(std::string input, const std::string &ip = {}) const;
template <typename T>
struct SMakeCommandArgs {