X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spanningtree%2Fsvsjoin.cpp;h=416502369c7856312afe3d34fc43283a15b21c8f;hb=b998720a5f6f66e80c88a5448435943d5927abf3;hp=cd7c7e06d870ca9c96b36ce2feae2bfbf1142f33;hpb=e2289d4cf4f9a9c587c1956c089bb3a32a48b54d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_spanningtree/svsjoin.cpp b/src/modules/m_spanningtree/svsjoin.cpp index cd7c7e06d..416502369 100644 --- a/src/modules/m_spanningtree/svsjoin.cpp +++ b/src/modules/m_spanningtree/svsjoin.cpp @@ -1,16 +1,23 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ +/* + * InspIRCd -- Internet Relay Chat Daemon * - * InspIRCd: (C) 2002-2009 InspIRCd Development Team - * See: http://wiki.inspircd.org/Credits + * Copyright (C) 2010 Daniel De Graaf + * Copyright (C) 2008 Robin Burchell * - * This program is free but copyrighted software; see - * the file COPYING for details. + * 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 + * License as published by the Free Software Foundation, version 2. * - * --------------------------------------------------- + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ + #include "inspircd.h" #include "socket.h" #include "xline.h" @@ -28,7 +35,7 @@ CmdResult CommandSVSJoin::Handle(const std::vector& parameters, Use return CMD_FAILURE; // Check target exists - User* u = ServerInstance->FindNick(parameters[0]); + User* u = ServerInstance->FindUUID(parameters[0]); if (!u) return CMD_FAILURE; @@ -40,7 +47,7 @@ CmdResult CommandSVSJoin::Handle(const std::vector& parameters, Use RouteDescriptor CommandSVSJoin::GetRouting(User* user, const std::vector& parameters) { - User* u = ServerInstance->FindNick(parameters[0]); + User* u = ServerInstance->FindUUID(parameters[0]); if (u) return ROUTE_OPT_UCAST(u->server); return ROUTE_LOCALONLY;