aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/main.cpp
diff options
context:
space:
mode:
authorGravatar peavey2007-06-13 22:04:14 +0000
committerGravatar peavey2007-06-13 22:04:14 +0000
commitd7ecb6198658cca6f79383f80e560c55527ab986 (patch)
treedca4ed5ddc2a4068d2d071a23344852f67204c18 /src/modules/m_spanningtree/main.cpp
parentHave the installer install cert.pem and key.pem to the conf/ dir only if they... (diff)
This is not, not routing of SQUIT, nothing to see here, move along :>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7301 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
-rw-r--r--src/modules/m_spanningtree/main.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 3fdb26875..c8cda1b04 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -409,8 +409,20 @@ int ModuleSpanningTree::HandleSquit(const char** parameters, int pcnt, userrec*
}
else
{
+ /* to be removed after 1.1.9 */
+ if (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);
+ std::deque<std::string> params;
+ params.push_back(parameters[0]);
+ params.push_back(std::string(":Server quit by ") + user->GetFullRealHost());
+ Utils->DoOneToOne(user->nick, "RSQUIT2", params, parameters[0]);
+ /* end to be removed after 1.1.9 */
+ /* to be INSERTED after 1.1.9 */
+ /*
if (IS_LOCAL(user))
user->WriteServ("NOTICE %s :*** WARNING: Using SQUIT to split remote servers is deprecated. Please use RSQUIT instead.",user->nick);
+ */
+ /* end to be INSERTED after 1.1.9 */
}
}
else