summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/override_squit.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-28 14:30:14 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-28 14:30:14 +0200
commit5214968e7e0e0d43e137535ac1a9369c222d79f0 (patch)
treeff06c606ce82c73fd75587af9110b5954a260d3f /src/modules/m_spanningtree/override_squit.cpp
parent91ba5c22664cae39d53f52af663a154286455e01 (diff)
m_spanningtree Move squit logic into TreeServer from TreeSocket
Diffstat (limited to 'src/modules/m_spanningtree/override_squit.cpp')
-rw-r--r--src/modules/m_spanningtree/override_squit.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/override_squit.cpp b/src/modules/m_spanningtree/override_squit.cpp
index 84cb01f50..9cec527d3 100644
--- a/src/modules/m_spanningtree/override_squit.cpp
+++ b/src/modules/m_spanningtree/override_squit.cpp
@@ -36,13 +36,10 @@ ModResult ModuleSpanningTree::HandleSquit(const std::vector<std::string>& parame
return MOD_RES_DENY;
}
- TreeSocket* sock = s->GetSocket();
-
if (s->IsLocal())
{
ServerInstance->SNO->WriteToSnoMask('l',"SQUIT: Server \002%s\002 removed from network by %s",parameters[0].c_str(),user->nick.c_str());
- sock->Squit(s,"Server quit by " + user->GetFullRealHost());
- sock->Close();
+ s->SQuit("Server quit by " + user->GetFullRealHost());
}
else
{