aboutsummaryrefslogtreecommitdiffstats
path: root/include/clientprotocolmsg.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-04-04 14:26:31 +0100
committerGravatar Sadie Powell2026-04-04 14:26:31 +0100
commit5269e1e4c4a44196839d57fa4e9833536672473a (patch)
tree2c7f0a560fcd4f37ef2e7f465ffa1cb651e31960 /include/clientprotocolmsg.h
parentRemove the remaining bits of stdalgo to utility/container. (diff)
Add an easier way to get the local Server* object.
Diffstat (limited to 'include/clientprotocolmsg.h')
-rw-r--r--include/clientprotocolmsg.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/clientprotocolmsg.h b/include/clientprotocolmsg.h
index 661d5efed..f09634a49 100644
--- a/include/clientprotocolmsg.h
+++ b/include/clientprotocolmsg.h
@@ -71,7 +71,7 @@ public:
* @param user User to send the numeric to. May be partially connected, must remain valid as long as this object is alive.
*/
Numeric(const ::Numeric::Numeric& num, User* user)
- : ClientProtocol::Message(nullptr, (num.GetServer() ? num.GetServer() : ServerInstance->FakeClient->server)->GetPublicName())
+ : ClientProtocol::Message(nullptr, (num.GetServer() ? num.GetServer() : ServerInstance->LocalServer)->GetPublicName())
{
if (user->connected & User::CONN_NICK)
PushParamRef(user->nick);
@@ -85,7 +85,7 @@ public:
* @param target Target string, must stay valid as long as this object is alive.
*/
Numeric(const ::Numeric::Numeric& num, const std::string& target)
- : ClientProtocol::Message(nullptr, (num.GetServer() ? num.GetServer() : ServerInstance->FakeClient->server)->GetPublicName())
+ : ClientProtocol::Message(nullptr, (num.GetServer() ? num.GetServer() : ServerInstance->LocalServer)->GetPublicName())
{
PushParamRef(target);
InitFromNumeric(num);
@@ -107,7 +107,7 @@ class CoreExport ClientProtocol::Messages::Reply
{
public:
Reply(const ::Reply::Reply& reply)
- : ClientProtocol::Message(nullptr, (reply.GetSource() ? reply.GetSource() : ServerInstance->FakeClient->server)->GetPublicName())
+ : ClientProtocol::Message(nullptr, (reply.GetSource() ? reply.GetSource() : ServerInstance->LocalServer)->GetPublicName())
{
AddTags(reply.GetParams().GetTags());
SetCommand(::Reply::CommandStrFromType(reply.GetType()));