From 4aed5846f17b15939aaf620ee4c4ca95a10609fc Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 29 Mar 2016 12:54:02 +0200 Subject: Simplify GetRouting() methods doing unicast --- src/modules/m_sakick.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/modules/m_sakick.cpp') diff --git a/src/modules/m_sakick.cpp b/src/modules/m_sakick.cpp index 8fc6e741b..ab168ca68 100644 --- a/src/modules/m_sakick.cpp +++ b/src/modules/m_sakick.cpp @@ -75,10 +75,7 @@ class CommandSakick : public Command RouteDescriptor GetRouting(User* user, const std::vector& parameters) { - User* dest = ServerInstance->FindNick(parameters[1]); - if (dest) - return ROUTE_OPT_UCAST(dest->server); - return ROUTE_LOCALONLY; + return ROUTE_OPT_UCAST(parameters[1]); } }; -- cgit v1.2.3