The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

operquit.cpp

Go to the documentation of this file.
00001 /*       +------------------------------------+
00002  *       | Inspire Internet Relay Chat Daemon |
00003  *       +------------------------------------+
00004  *
00005  *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
00006  * See: http://www.inspircd.org/wiki/index.php/Credits
00007  *
00008  * This program is free but copyrighted software; see
00009  *            the file COPYING for details.
00010  *
00011  * ---------------------------------------------------
00012  */
00013 
00014 #include "inspircd.h"
00015 #include "xline.h"
00016 
00017 #include "m_spanningtree/treesocket.h"
00018 #include "m_spanningtree/treeserver.h"
00019 #include "m_spanningtree/utils.h"
00020 
00021 /* $ModDep: m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/treesocket.h */
00022 
00023 
00024 bool TreeSocket::OperQuit(const std::string &prefix, std::deque<std::string> &params)
00025 {
00026         if (params.size() < 1)
00027                 return true;
00028 
00029         User* u = this->ServerInstance->FindNick(prefix);
00030 
00031         if (u)
00032         {
00033                 u->SetOperQuit(params[0]);
00034                 params[0] = ":" + params[0];
00035                 Utils->DoOneToAllButSender(prefix,"OPERQUIT",params,prefix);
00036         }
00037         return true;
00038 }
00039