]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/kill.cpp
Split servers if they try to send infinite garbage without a newline
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / kill.cpp
index ea5cca6fe88fe1c71b44cbca2fd7d602e19e767a..d01305cfc64924272b68bfce083ed91ad20e3c52 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
 #include "inspircd.h"
 #include "xline.h"
 
-#include "m_spanningtree/treesocket.h"
-#include "m_spanningtree/treeserver.h"
-#include "m_spanningtree/utils.h"
+#include "treesocket.h"
+#include "treeserver.h"
+#include "utils.h"
 
 /* $ModDep: m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/treesocket.h */
 
 
 
-bool TreeSocket::RemoteKill(const std::string &prefix, std::deque<std::string> &params)
+bool TreeSocket::RemoteKill(const std::string &prefix, parameterlist &params)
 {
        if (params.size() != 2)
                return true;
 
-       User* who = this->ServerInstance->FindNick(params[0]);
+       User* who = ServerInstance->FindNick(params[0]);
 
        if (who)
        {
@@ -46,7 +46,7 @@ bool TreeSocket::RemoteKill(const std::string &prefix, std::deque<std::string> &
                        // this shouldn't ever be null, but it doesn't hurt to check
                        who->Write(":%s KILL %s :%s (%s)", src->GetName().c_str(), who->nick.c_str(), src->GetName().c_str(), reason.c_str());
                }
-               this->ServerInstance->Users->QuitUser(who, reason);
+               ServerInstance->Users->QuitUser(who, reason);
        }
        return true;
 }