]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/svspart.cpp
Update m_cloaking to use free-form keys instead of weakening the hash IV
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / svspart.cpp
index 8d95395ed18555b4d4e9190e191c52f701e627c6..cc49aa72e0020aeeccdc50e51888ae7f1aa40517 100644 (file)
  */
 
 #include "inspircd.h"
-#include "commands/cmd_whois.h"
-#include "commands/cmd_stats.h"
 #include "socket.h"
 #include "xline.h"
-#include "../transport.h"
 #include "socketengine.h"
 
 #include "main.h"
@@ -26,7 +23,7 @@
 
 /* $ModDep: m_spanningtree/main.h m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/treesocket.h */
 
-bool TreeSocket::ServicePart(const std::string &prefix, std::deque<std::string> &params)
+bool TreeSocket::ServicePart(const std::string &prefix, parameterlist &params)
 {
        if (params.size() < 2)
                return true;
@@ -36,8 +33,8 @@ bool TreeSocket::ServicePart(const std::string &prefix, std::deque<std::string>
        if (params.size() == 3)
                reason = params[2];
 
-       User* u = this->ServerInstance->FindNick(params[0]);
-       Channel* c = this->ServerInstance->FindChan(params[1]);
+       User* u = ServerInstance->FindNick(params[0]);
+       Channel* c = ServerInstance->FindChan(params[1]);
 
        if (u)
        {