diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-03-29 12:54:02 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-03-29 12:54:02 +0200 |
commit | 4aed5846f17b15939aaf620ee4c4ca95a10609fc (patch) | |
tree | 2ef9b2e003acc6a2b695b0ee1aefda0870ea0c0c /src/modules/m_chghost.cpp | |
parent | da2b0ee6cad139804442a1ebcd0448755714f22a (diff) |
Simplify GetRouting() methods doing unicast
Diffstat (limited to 'src/modules/m_chghost.cpp')
-rw-r--r-- | src/modules/m_chghost.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp index 163f1f2eb..60146c78b 100644 --- a/src/modules/m_chghost.cpp +++ b/src/modules/m_chghost.cpp @@ -77,10 +77,7 @@ class CommandChghost : public Command RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters) { - User* dest = ServerInstance->FindNick(parameters[0]); - if (dest) - return ROUTE_OPT_UCAST(dest->server); - return ROUTE_LOCALONLY; + return ROUTE_OPT_UCAST(parameters[0]); } }; |