]> 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 79852422110298d6a0d5aab9582f4303343ac578..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
 
 
 
-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;
 }