diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-04-04 11:53:03 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-04-07 16:32:07 +0800 |
| commit | 4c904905f5f0667786d4c4b32d150b3d4328cfc2 (patch) | |
| tree | a397604070be947ea051f0db3555c34e604686df /src/commandHandler.hpp | |
| parent | 48c6f2384592c42a0fdbb6e420c77f6e10209f24 (diff) | |
session: use std::string for m_ip instead of c char
Diffstat (limited to 'src/commandHandler.hpp')
| -rw-r--r-- | src/commandHandler.hpp | 2 |
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 { |
