From 908f51760a301caa8d124fa37d0a3dfbee3791e4 Mon Sep 17 00:00:00 2001 From: peavey Date: Wed, 13 Jun 2007 20:45:40 +0000 Subject: Remove remote SQUIT hacks. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7292 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/main.cpp | 11 +++-------- src/modules/m_spanningtree/main.h | 2 +- 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 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 */ -- cgit v1.2.3