1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2008 InspIRCd Development Team
6 * See: http://www.inspircd.org/wiki/index.php/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
17 #include "m_spanningtree/treesocket.h"
18 #include "m_spanningtree/treeserver.h"
19 #include "m_spanningtree/utils.h"
21 /* $ModDep: m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/treesocket.h */
24 bool TreeSocket::DelLine(const std::string &prefix, std::deque<std::string> ¶ms)
26 if (params.size() < 2)
29 User* user = Instance->FindNick(prefix);
31 /* NOTE: No check needed on 'user', this function safely handles NULL */
32 if (Instance->XLines->DelLine(params[0].c_str(), params[1], user))
34 this->Instance->SNO->WriteToSnoMask('x',"%s removed %s%s on %s.", prefix.c_str(),
35 params[0].c_str(), params[0].length() == 1 ? "LINE" : "", params[1].c_str());
36 Utils->DoOneToAllButSender(prefix,"DELLINE", params, prefix);