From 2656ad9f63232b5a07eab88a7e049988437485ee Mon Sep 17 00:00:00 2001 From: "certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Tue, 28 Feb 2006 14:31:45 +0000 Subject: BUILD : 1.7.13 (972) BUGS : NOTES : Fixed a bug involving EVENT_ACCESS_DEL. git-svn-id: svn://svn.anope.org/anope/trunk@972 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@697 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/cs_access.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/cs_access.c b/src/core/cs_access.c index 454f3b875..cf09573c5 100644 --- a/src/core/cs_access.c +++ b/src/core/cs_access.c @@ -136,6 +136,9 @@ static int access_list_callback(User * u, int num, va_list args) * The /cs access command. * @param u The user who issued the command * @param MOD_CONT to continue processing other modules, MOD_STOP to stop processing. + * + * Known bug: EVENT_ACCESS_DEL won't be triggered if you use numbers instead of nicks. + * -Certus **/ int do_access(User * u) { @@ -146,7 +149,7 @@ int do_access(User * u) char event_access[BUFSIZE]; ChannelInfo *ci; - NickAlias *na; + NickAlias *na = NULL; NickCore *nc; ChanAccess *access; @@ -343,7 +346,8 @@ int do_access(User * u) } } } - send_event(EVENT_ACCESS_DEL, 3, ci->name, u->nick, na->nick); + if (na) + send_event(EVENT_ACCESS_DEL, 3, ci->name, u->nick, na->nick); } } else if (stricmp(cmd, "LIST") == 0) { int sent_header = 0; -- cgit