From 6ac600f42b324490d9e123ef8f73ccc191365dd3 Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Fri, 4 Jan 2008 10:22:44 +0000 Subject: 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 --- src/core/cs_xop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core') 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; } -- cgit