X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spanningtree%2Fsvsjoin.cpp;h=9598a6348bf920883e08644fb720f1bb31a867de;hb=0a6b1e1a7de92e078a98f0b955d2624e5b85e4c1;hp=98443409aa8abd3068207bcf9cef39a1eaf1fed6;hpb=6fe1f4e1136f2ab95a88e68af1894bf6002d03f4;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_spanningtree/svsjoin.cpp b/src/modules/m_spanningtree/svsjoin.cpp index 98443409a..9598a6348 100644 --- a/src/modules/m_spanningtree/svsjoin.cpp +++ b/src/modules/m_spanningtree/svsjoin.cpp @@ -1,8 +1,12 @@ /* * InspIRCd -- Internet Relay Chat Daemon * + * Copyright (C) 2013, 2018 Sadie Powell + * Copyright (C) 2012-2014, 2016 Attila Molnar + * Copyright (C) 2012 Robby * Copyright (C) 2010 Daniel De Graaf - * Copyright (C) 2008 Robin Burchell + * Copyright (C) 2010 Craig Edwards + * Copyright (C) 2008-2009 Robin Burchell * * This file is part of InspIRCd. InspIRCd is free software: you can * redistribute it and/or modify it under the terms of the GNU General Public @@ -22,7 +26,7 @@ #include "commands.h" -CmdResult CommandSVSJoin::Handle(User* user, std::vector& parameters) +CmdResult CommandSVSJoin::Handle(User* user, Params& parameters) { // Check for valid channel name if (!ServerInstance->IsChannel(parameters[1])) @@ -52,10 +56,7 @@ CmdResult CommandSVSJoin::Handle(User* user, std::vector& parameter return CMD_SUCCESS; } -RouteDescriptor CommandSVSJoin::GetRouting(User* user, const std::vector& parameters) +RouteDescriptor CommandSVSJoin::GetRouting(User* user, const Params& parameters) { - User* u = ServerInstance->FindUUID(parameters[0]); - if (u) - return ROUTE_OPT_UCAST(u->server); - return ROUTE_LOCALONLY; + return ROUTE_OPT_UCAST(parameters[0]); }