1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 14:23:13 +02:00

BUILD : 1.7.18 (1240) BUGS : 706 NOTES : Fixed EVENT_ACCESS_DEL nog being sent on each delete when mass-deleting in cs_xop

git-svn-id: svn://svn.anope.org/anope/trunk@1240 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@959 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
2007-04-21 12:28:49 +00:00
parent d10f00f918
commit 208219f8ec
3 changed files with 9 additions and 3 deletions
+1
View File
@@ -19,6 +19,7 @@ Anope Version S V N
03/18 F DefCon's AKILL will now honor the server's sync flag. [#643]
03/18 F Password length checking in some cases was out. [ #00]
04/21 F DefCon did not force DefCon modes while in DefCon mode. [#661]
04/21 F Event ACCESS_DEL not sent on mass-deleted in cs_xop. [#706]
Provided by Jan Milants <jan_renee@msn.com> - 2007
04/21 F Array count decremention in the ChanServ access lists. [#662]
+3 -2
View File
@@ -172,7 +172,7 @@ int do_vop(User * u)
* `perm' is incremented whenever a permission-denied error occurs
*/
int xop_del(User * u, ChanAccess * access, int *perm, int uacc, int xlev)
int xop_del(User * u, ChannelInfo * ci, ChanAccess * access, int *perm, int uacc, int xlev)
{
if (!access->in_use || access->level != xlev)
return 0;
@@ -180,6 +180,7 @@ int xop_del(User * u, ChanAccess * access, int *perm, int uacc, int xlev)
(*perm)++;
return 0;
}
send_event(EVENT_ACCESS_DEL, 3, ci->name, u->nick, access->nc->display);
access->nc = NULL;
access->in_use = 0;
return 1;
@@ -197,7 +198,7 @@ int xop_del_callback(User * u, int num, va_list args)
return 0;
*last = num;
return xop_del(u, &ci->access[num - 1], perm, uacc, xlev);
return xop_del(u, ci, &ci->access[num - 1], perm, uacc, xlev);
}
+5 -1
View File
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="18"
VERSION_EXTRA="-svn"
VERSION_BUILD="1239"
VERSION_BUILD="1240"
# $Log$
#
# BUILD : 1.7.18 (1240)
# BUGS : 706
# NOTES : Fixed EVENT_ACCESS_DEL nog being sent on each delete when mass-deleting in cs_xop
#
# BUILD : 1.7.18 (1239)
# BUGS : 705
# NOTES : Applied patch by Jan Milants to fix the swapped ACCESS_ADD and ACCESS_CHANGED events in cs_xop