]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/kill.cpp
Fix memory leaks on reloadmodule and spanningtree unload while connecting servers
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / kill.cpp
index c2026d0bb4d8fcca9c1660edfb4e6b43f1c28521..e76fc7f3e52bb0048cdf7251dbb1fce6b3fea138 100644 (file)
@@ -28,7 +28,7 @@ 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, parameterlist &params)
                        // 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;
 }