summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/svspart.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-03-29 12:54:02 +0200
committerAttila Molnar <attilamolnar@hush.com>2016-03-29 12:54:02 +0200
commit4aed5846f17b15939aaf620ee4c4ca95a10609fc (patch)
tree2ef9b2e003acc6a2b695b0ee1aefda0870ea0c0c /src/modules/m_spanningtree/svspart.cpp
parentda2b0ee6cad139804442a1ebcd0448755714f22a (diff)
Simplify GetRouting() methods doing unicast
Diffstat (limited to 'src/modules/m_spanningtree/svspart.cpp')
-rw-r--r--src/modules/m_spanningtree/svspart.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/svspart.cpp b/src/modules/m_spanningtree/svspart.cpp
index f86afa367..c4163ef3d 100644
--- a/src/modules/m_spanningtree/svspart.cpp
+++ b/src/modules/m_spanningtree/svspart.cpp
@@ -42,8 +42,5 @@ CmdResult CommandSVSPart::Handle(User* user, std::vector<std::string>& parameter
RouteDescriptor CommandSVSPart::GetRouting(User* user, const std::vector<std::string>& parameters)
{
- User* u = ServerInstance->FindUUID(parameters[0]);
- if (u)
- return ROUTE_OPT_UCAST(u->server);
- return ROUTE_LOCALONLY;
+ return ROUTE_OPT_UCAST(parameters[0]);
}