summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-13 20:45:40 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-13 20:45:40 +0000
commit908f51760a301caa8d124fa37d0a3dfbee3791e4 (patch)
treee51e01ac274d168af56c08ecda7540a0c63ab5ca
parentfee688e9b71ad5939301739332d48fe6c2ddf8f8 (diff)
Remove remote SQUIT hacks.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7292 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_spanningtree/main.cpp11
-rw-r--r--src/modules/m_spanningtree/main.h2
2 files changed, 4 insertions, 9 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 573126ad3..3fdb26875 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -388,7 +388,7 @@ void ModuleSpanningTree::HandleMap(const char** parameters, int pcnt, userrec* u
return;
}
-int ModuleSpanningTree::HandleSquit(const char** parameters, int pcnt, userrec* user, bool remote)
+int ModuleSpanningTree::HandleSquit(const char** parameters, int pcnt, userrec* user)
{
TreeServer* s = Utils->FindServerMask(parameters[0]);
if (s)
@@ -409,13 +409,8 @@ int ModuleSpanningTree::HandleSquit(const char** parameters, int pcnt, userrec*
}
else
{
- if (!remote && IS_LOCAL(user))
- user->WriteServ("NOTICE %s :*** WARNING: Using SQUIT to split remote servers is deprecated and will be removed in a future version. Please use RSQUIT instead.",user->nick);
- /* route it */
- std::deque<std::string> params;
- params.push_back(parameters[0]);
- params.push_back(std::string(":Server quit by ") + user->GetFullRealHost());
- Utils->DoOneToOne(user->nick, "RSQUIT", params, parameters[0]);
+ if (IS_LOCAL(user))
+ user->WriteServ("NOTICE %s :*** WARNING: Using SQUIT to split remote servers is deprecated. Please use RSQUIT instead.",user->nick);
}
}
else
diff --git a/src/modules/m_spanningtree/main.h b/src/modules/m_spanningtree/main.h
index 2052607c6..620bddd28 100644
--- a/src/modules/m_spanningtree/main.h
+++ b/src/modules/m_spanningtree/main.h
@@ -103,7 +103,7 @@ class ModuleSpanningTree : public Module
/** Handle SQUIT
*/
- int HandleSquit(const char** parameters, int pcnt, userrec* user, bool remote=false);
+ int HandleSquit(const char** parameters, int pcnt, userrec* user);
/** Handle TIME
*/