X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spanningtree%2Fsinfo.cpp;h=24bf3ed78dc8293fd632bd909dc50c43d506a32f;hb=3151d60c1ecc9462e4c335282ee6c31672f45111;hp=0989ea9a5def650250a20e213d969468fa3592ab;hpb=f62654a6859998f9d63eb22702c572d5ebcff15c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_spanningtree/sinfo.cpp b/src/modules/m_spanningtree/sinfo.cpp index 0989ea9a5..24bf3ed78 100644 --- a/src/modules/m_spanningtree/sinfo.cpp +++ b/src/modules/m_spanningtree/sinfo.cpp @@ -1,6 +1,8 @@ /* * InspIRCd -- Internet Relay Chat Daemon * + * Copyright (C) 2018-2019 Sadie Powell + * Copyright (C) 2017 B00mX0r * Copyright (C) 2014 Attila Molnar * * 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& 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::vectorSetVersion(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::vectorGetID(), "SINFO") + : CmdBuilder(server, "SINFO") { push(key).push_last(val); }