X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fmodules%2Fircv3_replies.h;h=f3c5c451a8db7e85cd700c9e67ea131bc9a5615f;hb=2ba32afa9a9aca7c82966b66bda16c3c3dbfbba5;hp=3ff462ad7d81299d4216f385c3aa9cef5ec27c41;hpb=31897d26f2ae1f0fc794a5af512dd4e81053611b;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/modules/ircv3_replies.h b/include/modules/ircv3_replies.h index 3ff462ad7..f3c5c451a 100644 --- a/include/modules/ircv3_replies.h +++ b/include/modules/ircv3_replies.h @@ -1,7 +1,7 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2019 Sadie Powell + * Copyright (C) 2019-2020 Sadie Powell * * This file is part of InspIRCd. InspIRCd is free software: you can * redistribute it and/or modify it under the terms of the GNU General Public @@ -90,7 +90,7 @@ class IRCv3::Replies::Reply */ void Send(LocalUser* user, Command* command, const std::string& code, const std::string& description) { - ClientProtocol::Message msg(cmd.c_str(), ServerInstance->Config->ServerName); + ClientProtocol::Message msg(cmd.c_str(), ServerInstance->Config->GetServerName()); msg.PushParamRef(command->name); msg.PushParam(code); msg.PushParam(description); @@ -100,7 +100,7 @@ class IRCv3::Replies::Reply template void Send(LocalUser* user, Command* command, const std::string& code, const T1& p1, const std::string& description) { - ClientProtocol::Message msg(cmd.c_str(), ServerInstance->Config->ServerName); + ClientProtocol::Message msg(cmd.c_str(), ServerInstance->Config->GetServerName()); msg.PushParamRef(command->name); msg.PushParam(code); msg.PushParam(ConvToStr(p1)); @@ -112,7 +112,7 @@ class IRCv3::Replies::Reply void Send(LocalUser* user, Command* command, const std::string& code, const T1& p1, const T2& p2, const std::string& description) { - ClientProtocol::Message msg(cmd.c_str(), ServerInstance->Config->ServerName); + ClientProtocol::Message msg(cmd.c_str(), ServerInstance->Config->GetServerName()); msg.PushParamRef(command->name); msg.PushParam(code); msg.PushParam(ConvToStr(p1)); @@ -125,7 +125,7 @@ class IRCv3::Replies::Reply void Send(LocalUser* user, Command* command, const std::string& code, const T1& p1, const T2& p2, const T3& p3, const std::string& description) { - ClientProtocol::Message msg(cmd.c_str(), ServerInstance->Config->ServerName); + ClientProtocol::Message msg(cmd.c_str(), ServerInstance->Config->GetServerName()); msg.PushParamRef(command->name); msg.PushParam(code); msg.PushParam(ConvToStr(p1)); @@ -139,7 +139,7 @@ class IRCv3::Replies::Reply void Send(LocalUser* user, Command* command, const std::string& code, const T1& p1, const T2& p2, const T3& p3, const T4& p4, const std::string& description) { - ClientProtocol::Message msg(cmd.c_str(), ServerInstance->Config->ServerName); + ClientProtocol::Message msg(cmd.c_str(), ServerInstance->Config->GetServerName()); msg.PushParamRef(command->name); msg.PushParam(code); msg.PushParam(ConvToStr(p1)); @@ -154,7 +154,7 @@ class IRCv3::Replies::Reply void Send(LocalUser* user, Command* command, const std::string& code, const T1& p1, const T2& p2, const T3& p3, const T4& p4, const T5& p5, const std::string& description) { - ClientProtocol::Message msg(cmd.c_str(), ServerInstance->Config->ServerName); + ClientProtocol::Message msg(cmd.c_str(), ServerInstance->Config->GetServerName()); if (command) msg.PushParamRef(command->name); else