diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-14 18:22:39 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-15 10:20:50 +0200 |
commit | fab120ee831ff1cdf3d5560b6b87288b07c52084 (patch) | |
tree | 5aa3a385b6eb4c4a334afb26c490892992a750ba /src/network/network_func.h | |
parent | ae85af98eb02831594e4a204348c682b192e83ac (diff) | |
download | openttd-fab120ee831ff1cdf3d5560b6b87288b07c52084.tar.xz |
Codechange: [Network] Let chat communication use std::string
Diffstat (limited to 'src/network/network_func.h')
-rw-r--r-- | src/network/network_func.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_func.h b/src/network/network_func.h index 82a5deb45..1c5916eda 100644 --- a/src/network/network_func.h +++ b/src/network/network_func.h @@ -55,7 +55,7 @@ bool NetworkClientConnectGame(const std::string &connection_string, CompanyID de void NetworkClientJoinGame(); void NetworkClientRequestMove(CompanyID company, const std::string &pass = ""); void NetworkClientSendRcon(const std::string &password, const char *command); -void NetworkClientSendChat(NetworkAction action, DestType type, int dest, const char *msg, int64 data = 0); +void NetworkClientSendChat(NetworkAction action, DestType type, int dest, const std::string &msg, int64 data = 0); bool NetworkClientPreferTeamChat(const NetworkClientInfo *cio); bool NetworkCompanyIsPassworded(CompanyID company_id); bool NetworkMaxCompaniesReached(); @@ -77,7 +77,7 @@ bool NetworkServerChangeClientName(ClientID client_id, const char *new_name); void NetworkServerDoMove(ClientID client_id, CompanyID company_id); void NetworkServerSendRcon(ClientID client_id, TextColour colour_code, const char *string); -void NetworkServerSendChat(NetworkAction action, DestType type, int dest, const char *msg, ClientID from_id, int64 data = 0, bool from_admin = false); +void NetworkServerSendChat(NetworkAction action, DestType type, int dest, const std::string &msg, ClientID from_id, int64 data = 0, bool from_admin = false); void NetworkServerKickClient(ClientID client_id, const char *reason); uint NetworkServerKickOrBanIP(ClientID client_id, bool ban, const char *reason); |