summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2008-01-04 10:22:44 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2008-01-04 10:22:44 +0000
commit6ac600f42b324490d9e123ef8f73ccc191365dd3 (patch)
treef4170779afd1208d0df8285440b556e23fb5a80a
parent62502d68f369a41d40da080c5674e29a59c40e7c (diff)
BUILD : 1.7.20 (1331) BUGS : 816 NOTES : Applied patch by Jan Milants to fix EVENT_ACCESS_DEL being sent with NULL-param when using XOP
git-svn-id: svn://svn.anope.org/anope/trunk@1331 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1047 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--Changes3
-rw-r--r--src/core/cs_xop.c3
-rw-r--r--version.log6
3 files changed, 10 insertions, 2 deletions
diff --git a/Changes b/Changes
index c0a4d2143..69bc53b68 100644
--- a/Changes
+++ b/Changes
@@ -6,6 +6,9 @@ Anope Version S V N
Provided by Trystan <trystan@nomadirc.net> - 2008
01/04 F Detection of Windows Vista and Windows Server 2008. [#815]
+Provided by Jan Milants <jan_renee@msn.com> - 2008
+01/04 F EVENT_ACCESS_DEL being sent with NULL-param when using XOP. [#816]
+
Anope Version 1.7.20
--------------------
12/28 F Some silly logic errors in anope_event_capab() in inspircd11.c [ #00]
diff --git a/src/core/cs_xop.c b/src/core/cs_xop.c
index 339501c33..eb102ee98 100644
--- a/src/core/cs_xop.c
+++ b/src/core/cs_xop.c
@@ -174,6 +174,7 @@ int do_vop(User * u)
int xop_del(User * u, ChannelInfo * ci, ChanAccess * access, int *perm, int uacc, int xlev)
{
+ char *nick = access->nc->display;
if (!access->in_use || access->level != xlev)
return 0;
if (!is_services_admin(u) && uacc <= access->level) {
@@ -182,7 +183,7 @@ int xop_del(User * u, ChannelInfo * ci, ChanAccess * access, int *perm, int uacc
}
access->nc = NULL;
access->in_use = 0;
- send_event(EVENT_ACCESS_DEL, 3, ci->name, u->nick, access->nc->display);
+ send_event(EVENT_ACCESS_DEL, 3, ci->name, u->nick, nick);
return 1;
}
diff --git a/version.log b/version.log
index 9daff9379..4d1641951 100644
--- a/version.log
+++ b/version.log
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="20"
VERSION_EXTRA="-svn"
-VERSION_BUILD="1330"
+VERSION_BUILD="1331"
# $Log$
#
+# BUILD : 1.7.20 (1331)
+# BUGS : 816
+# NOTES : Applied patch by Jan Milants to fix EVENT_ACCESS_DEL being sent with NULL-param when using XOP
+#
# BUILD : 1.7.20 (1330)
# BUGS : 815
# NOTES : Applied patch by Trystan to properly detect Windows Vista and Windows Server 2008