diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-07-27 18:56:12 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-07-27 18:56:12 +0200 |
commit | 6c37b451cd2bb948d562cb00354bdc7a7dc400da (patch) | |
tree | e5cc65e65d70a3bf0927f67c466472f5d36d25ef /src/modules/m_spanningtree/commands.h | |
parent | 984004505b8b5eea2467b703411fccac831ee780 (diff) |
m_spanningtree Parse additional information present in SERVER messages
Format: <key>[=<value>]
Diffstat (limited to 'src/modules/m_spanningtree/commands.h')
-rw-r--r-- | src/modules/m_spanningtree/commands.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/commands.h b/src/modules/m_spanningtree/commands.h index a5fc1164e..c26d5d7ae 100644 --- a/src/modules/m_spanningtree/commands.h +++ b/src/modules/m_spanningtree/commands.h @@ -305,12 +305,18 @@ class CommandSave : public ServerCommand class CommandServer : public ServerOnlyServerCommand<CommandServer> { + static void HandleExtra(TreeServer* newserver, const std::vector<std::string>& params); + public: CommandServer(Module* Creator) : ServerOnlyServerCommand<CommandServer>(Creator, "SERVER", 3) { } CmdResult HandleServer(TreeServer* server, std::vector<std::string>& parameters); class Builder : public CmdBuilder { + void push_property(const char* key, const std::string& val) + { + push(key).push_raw('=').push_raw(val); + } public: Builder(TreeServer* server); }; |