summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-15 01:52:20 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-15 01:52:20 +0000
commit99eeb2c30f40dffd8298d113da1655ca777c2e5b (patch)
tree9611e0fdc6b34c76406a12fff0b52fed33b7aea5 /src/modules/m_spanningtree
parentd73572e3f0718931dd975f7438d2f9311d20bd42 (diff)
remove RSQUIT2 routing hack for SQUIT now we use one param RSQUIT.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7325 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp
index fadb1ef9c..d13ea0d89 100644
--- a/src/modules/m_spanningtree/treesocket2.cpp
+++ b/src/modules/m_spanningtree/treesocket2.cpp
@@ -294,55 +294,6 @@ bool TreeSocket::OperQuit(const std::string &prefix, std::deque<std::string> &pa
return true;
}
-/* to be removed after 1.1.9 */
-/*
- * Remote SQUIT (RSQUIT). Routing works similar to SVSNICK: Route it to the server that the target is connected to locally,
- * then let that server do the dirty work (squit it!). Example:
- * A -> B -> C -> D: oper on A squits D, A routes to B, B routes to C, C notices D connected locally, kills it. -- w00t
- */
-bool TreeSocket::RemoteSquit(const std::string &prefix, std::deque<std::string> &params)
-{
- /* ok.. :w00t RSQUIT jupe.barafranca.com :reason here */
- if (params.size() < 2)
- return true;
-
- TreeServer* s = Utils->FindServerMask(params[0]);
-
- if (s)
- {
- if (s == Utils->TreeRoot)
- {
- this->Instance->SNO->WriteToSnoMask('l',"What the fuck, I recieved a remote SQUIT for myself? :< (from %s", prefix.c_str());
- return true;
- }
-
- TreeSocket* sock = s->GetSocket();
-
- if (sock)
- {
- /* it's locally connected, KILL IT! */
- Instance->SNO->WriteToSnoMask('l',"RSQUIT: Server \002%s\002 removed from network by %s: %s", params[0].c_str(), prefix.c_str(), params[1].c_str());
- sock->Squit(s,"Server quit by " + prefix + ": " + params[1]);
- Instance->SE->DelFd(sock);
- sock->Close();
- delete sock;
- }
- else
- {
- /* route the rsquit */
- params[1] = ":" + params[1];
- Utils->DoOneToOne(prefix, "RSQUIT2", params, params[0]);
- }
- }
- else
- {
- /* mother fucker! it doesn't exist */
- }
-
- return true;
-}
-/* end to be removed after 1.1.9 */
-
bool TreeSocket::ServiceJoin(const std::string &prefix, std::deque<std::string> &params)
{
if (params.size() < 2)
@@ -1329,12 +1280,6 @@ bool TreeSocket::ProcessLine(std::string &line)
{
return this->OperQuit(prefix,params);
}
- /* to be removed after 1.1.9 */
- else if (command == "RSQUIT2")
- {
- return this->RemoteSquit(prefix, params);
- }
- /* end to be removed after 1.1.9 */
else if (command == "IDLE")
{
return this->Whois(prefix,params);