From 4c904905f5f0667786d4c4b32d150b3d4328cfc2 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 4 Apr 2025 11:53:03 +0800 Subject: session: use std::string for m_ip instead of c char --- src/commandHandler.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commandHandler.hpp') 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 struct SMakeCommandArgs { -- cgit v1.2.3