summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-10-04 14:10:19 +0100
committerPeter Powell <petpow@saberuk.com>2017-10-04 14:10:19 +0100
commit12c67fb0e5de72c127f62a1eed6cd5e5627f3c91 (patch)
tree92e9f20fa52fe18bd91d6f99fbe0e2a6cce8e9d3 /src/users.cpp
parente97d5cf4fa46fe4de3d5a4c0ce603048c24ddbb3 (diff)
Fix RPL_SERVERVERSION treating the modes as a single parameter.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 7d72692d9..4945cbb21 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -541,8 +541,8 @@ void LocalUser::FullConnect()
this->WriteNumeric(RPL_YOURHOSTIS, InspIRCd::Format("Your host is %s, running version %s", ServerInstance->Config->ServerName.c_str(), INSPIRCD_BRANCH));
this->WriteNumeric(RPL_SERVERCREATED, InspIRCd::TimeString(ServerInstance->startup_time, "This server was created %H:%M:%S %b %d %Y"));
- const std::string& modelist = ServerInstance->Modes->GetModeListFor004Numeric();
- this->WriteNumeric(RPL_SERVERVERSION, ServerInstance->Config->ServerName, INSPIRCD_BRANCH, modelist);
+ const TR1NS::array<std::string, 3>& modelist = ServerInstance->Modes->GetModeListFor004Numeric();
+ this->WriteNumeric(RPL_SERVERVERSION, ServerInstance->Config->ServerName, INSPIRCD_BRANCH, modelist[0], modelist[1], modelist[2]);
ServerInstance->ISupport.SendTo(this);