1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2010 InspIRCd Development Team
6 * See: http://wiki.inspircd.org/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
17 #include "socketengine.h"
21 #include "treeserver.h"
24 CmdResult CommandSVSPart::Handle(const std::vector<std::string>& parameters, User *user)
26 std::string reason = "Services forced part";
28 if (parameters.size() == 3)
29 reason = parameters[2];
31 User* u = ServerInstance->FindNick(parameters[0]);
32 Channel* c = ServerInstance->FindChan(parameters[1]);
35 c->PartUser(u, reason);
40 RouteDescriptor CommandSVSPart::GetRouting(User* user, const std::vector<std::string>& parameters)
42 User* u = ServerInstance->FindNick(parameters[0]);
44 return ROUTE_OPT_UCAST(u->server);
45 return ROUTE_LOCALONLY;