diff options
author | Sadie Powell <sadie@witchery.services> | 2021-05-14 13:56:32 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-05-14 13:56:32 +0100 |
commit | 4350a11c663b0d75f8119743bffb7736d87abd4d (patch) | |
tree | bb3276c57e6c49eacbdd3e18272b9eea167e9230 /src/coremods | |
parent | 1288e9e593bfa014548b1aa48aac4afda98002c8 (diff) |
Fix sending malformed pong messages in some cases.
Diffstat (limited to 'src/coremods')
-rw-r--r-- | src/coremods/core_user/core_user.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coremods/core_user/core_user.cpp b/src/coremods/core_user/core_user.cpp index 2431215f3..622e82c75 100644 --- a/src/coremods/core_user/core_user.cpp +++ b/src/coremods/core_user/core_user.cpp @@ -83,7 +83,7 @@ class CommandPing : public SplitCommand return CMD_FAILURE; } - ClientProtocol::Messages::Pong pong(parameters[0], origin ? parameters[1] : ""); + ClientProtocol::Messages::Pong pong(parameters[0], origin ? parameters[1] : ServerInstance->Config->GetServerName()); user->Send(ServerInstance->GetRFCEvents().pong, pong); return CMD_SUCCESS; } |