Skip to content

Commit

Permalink
Backport of r2980 - Fixed bug #1167 - Fixed SQUITing juped servers on…
Browse files Browse the repository at this point in the history
… InspIRCd 1.2

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2981 5417fbe8-f217-4b02-8779-1006273d7864
  • Loading branch information
Adam- authored and Adam- committed May 23, 2010
1 parent 6661c3e commit 15c66af
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Anope Version 1.8 - SVN
4/19 F Fixed ns_info to show nick expire times to opers not only admins [ #00]
4/28 F Fixed a bug that could make some nick requests disappear [ #00]
5/18 F Fixed English and grammar in e-mail messages [ #00]
5/23 F Fixed SQUITing juped servers on InspIRCd 1.2 [#1165]

Anope Version 1.8.4
-------------------
Expand Down
9 changes: 9 additions & 0 deletions src/protocol/inspircd12.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 2 additions & 1 deletion version.log
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ VERSION_MAJOR="1"
VERSION_MINOR="8"
VERSION_PATCH="4"
VERSION_EXTRA="-svn"
VERSION_BUILD="2978"
VERSION_BUILD="2981"

# $Log$ # Changes since the 1.8.4 Release
#Revision 2981 - Fixed SQUITing juped servers on InspIRCd 1.2
#Revision 2978 - Added param to EVENT_CHANGE_NICK for old nickname
#Revision 2976 - Added internal events called when nick is ghosted and when nick is recovered
#Revision 2969 - Extension to r2952 adding logging for BS BOT
Expand Down

0 comments on commit 15c66af

Please sign in to comment.