diff options
Diffstat (limited to 'src/modules/m_spanningtree/version.cpp')
-rw-r--r-- | src/modules/m_spanningtree/version.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/modules/m_spanningtree/version.cpp b/src/modules/m_spanningtree/version.cpp index 9a0710359..b63fc259c 100644 --- a/src/modules/m_spanningtree/version.cpp +++ b/src/modules/m_spanningtree/version.cpp @@ -24,14 +24,9 @@ #include "treeserver.h" #include "commands.h" -CmdResult CommandVersion::Handle(User* user, std::vector<std::string>& params) +CmdResult CommandVersion::HandleServer(TreeServer* server, std::vector<std::string>& params) { - TreeServer* ServerSource = Utils->FindServer(user->server); - - if (ServerSource) - { - ServerSource->SetVersion(params[0]); - } + server->SetVersion(params[0]); return CMD_SUCCESS; } |