aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/sinfo.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2014-06-17 13:25:06 +0200
committerGravatar Attila Molnar2014-06-17 13:25:06 +0200
commit7e47e4184196952d7bd2ed2c79232fc374f9e664 (patch)
treec992c47cb7ea33187a3257cffe0c46664c0d09fe /src/modules/m_spanningtree/sinfo.cpp
parentm_spanningtree Add TreeSocket::SendServerInfo() that sends all additional dat... (diff)
m_spanningtree Add server-to-server SINFO command handler and builder
Don't send SINFO to 1202 protocol servers
Diffstat (limited to 'src/modules/m_spanningtree/sinfo.cpp')
-rw-r--r--src/modules/m_spanningtree/sinfo.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/sinfo.cpp b/src/modules/m_spanningtree/sinfo.cpp
new file mode 100644
index 000000000..71bd48b44
--- /dev/null
+++ b/src/modules/m_spanningtree/sinfo.cpp
@@ -0,0 +1,36 @@
+/*
+ * InspIRCd -- Internet Relay Chat Daemon
+ *
+ * Copyright (C) 2014 Attila Molnar <attilamolnar@hush.com>
+ *
+ * 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
+ * License as published by the Free Software Foundation, version 2.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "inspircd.h"
+
+#include "treeserver.h"
+#include "commands.h"
+
+CmdResult CommandSInfo::HandleServer(TreeServer* server, std::vector<std::string>& params)
+{
+ const std::string& key = params.front();
+ const std::string& value = params.back();
+
+ return CMD_SUCCESS;
+}
+
+CommandSInfo::Builder::Builder(TreeServer* server, const char* key, const std::string& val)
+ : CmdBuilder(server->GetID(), "SINFO")
+{
+ push(key).push_last(val);
+}