summaryrefslogtreecommitdiff
path: root/src/coremods
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-05-14 13:56:32 +0100
committerSadie Powell <sadie@witchery.services>2021-05-14 13:56:32 +0100
commit4350a11c663b0d75f8119743bffb7736d87abd4d (patch)
treebb3276c57e6c49eacbdd3e18272b9eea167e9230 /src/coremods
parent1288e9e593bfa014548b1aa48aac4afda98002c8 (diff)
Fix sending malformed pong messages in some cases.
Diffstat (limited to 'src/coremods')
-rw-r--r--src/coremods/core_user/core_user.cpp2
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;
}