1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2009 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"
22 #include "treesocket.h"
24 /* $ModDep: m_spanningtree/main.h m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/treesocket.h */
26 bool TreeSocket::ServicePart(const std::string &prefix, parameterlist ¶ms)
28 if (params.size() < 2)
31 std::string reason = "Services forced part";
33 if (params.size() == 3)
36 User* u = ServerInstance->FindNick(params[0]);
37 Channel* c = ServerInstance->FindChan(params[1]);
41 /* only part if it's local, otherwise just pass it on! */
43 if (!c->PartUser(u, reason))
45 Utils->DoOneToAllButSender(prefix,"SVSPART",params,prefix);