]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modules/ircv3_replies.h
Fix a bunch of really obvious unnecessary includes.
[user/henk/code/inspircd.git] / include / modules / ircv3_replies.h
index 3ff462ad7d81299d4216f385c3aa9cef5ec27c41..f3c5c451a8db7e85cd700c9e67ea131bc9a5615f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2019 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2019-2020 Sadie Powell <sadie@witchery.services>
  *
  * 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<typename T1>
        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