summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-23 20:50:06 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-23 20:50:06 +0000
commit15c66af4e50ec2096268b858a68a4f51d086a5d9 (patch)
tree114fe6e4dd6b9c21a34bb86cd26374575e1b72e3 /src
parent6661c3ebdbd144ab5fb0bf5e85007e2da9e1a5b5 (diff)
Backport of r2980 - Fixed bug #1167 - Fixed SQUITing juped servers on InspIRCd 1.2
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2981 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/protocol/inspircd12.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/protocol/inspircd12.c b/src/protocol/inspircd12.c
index e887db7e0..78eda0106 100644
--- a/src/protocol/inspircd12.c
+++ b/src/protocol/inspircd12.c
@@ -1449,6 +1449,15 @@ int anope_event_rsquit(char *source, int ac, char **av)
if (ac < 1 || ac > 3)
return MOD_CONT;
+ /* On InspIRCd we must send a SQUIT when we receive RSQUIT for a server we have juped */
+ Server *s = findserver(servlist, av[0]);
+ if (!s)
+ s = findserver_uid(servlist, av[0]);
+ if (s && s->flags & SERVER_JUPED)
+ {
+ send_cmd(TS6SID, "SQUIT %s :%s", s->suid, ac > 1 ? av[1] : "");
+ }
+
do_squit(source, ac, av);
return MOD_CONT;
}