]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/sinfo.cpp
Fix a bunch of weird indentation and spacing issues.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / sinfo.cpp
index 0989ea9a5def650250a20e213d969468fa3592ab..24bf3ed78dc8293fd632bd909dc50c43d506a32f 100644 (file)
@@ -1,6 +1,8 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
+ *   Copyright (C) 2018-2019 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2017 B00mX0r <b00mx0r@aureus.pw>
  *   Copyright (C) 2014 Attila Molnar <attilamolnar@hush.com>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
@@ -21,7 +23,7 @@
 #include "treeserver.h"
 #include "commands.h"
 
-CmdResult CommandSInfo::HandleServer(TreeServer* server, std::vector<std::string>& params)
+CmdResult CommandSInfo::HandleServer(TreeServer* server, CommandBase::Params& params)
 {
        const std::string& key = params.front();
        const std::string& value = params.back();
@@ -34,6 +36,10 @@ CmdResult CommandSInfo::HandleServer(TreeServer* server, std::vector<std::string
        {
                server->SetVersion(value);
        }
+       else if (key == "rawversion")
+       {
+               server->SetRawVersion(value);
+       }
        else if (key == "desc")
        {
                // Only sent when the description of a server changes because of a rehash; not sent on burst
@@ -45,7 +51,7 @@ CmdResult CommandSInfo::HandleServer(TreeServer* server, std::vector<std::string
 }
 
 CommandSInfo::Builder::Builder(TreeServer* server, const char* key, const std::string& val)
-       : CmdBuilder(server->GetID(), "SINFO")
+       : CmdBuilder(server, "SINFO")
 {
        push(key).push_last(val);
 }