diff options
author | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-02-28 14:31:45 +0000 |
---|---|---|
committer | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-02-28 14:31:45 +0000 |
commit | 2656ad9f63232b5a07eab88a7e049988437485ee (patch) | |
tree | 7bde758d448d0804287c31295ed7fd515069748d /src/core/cs_access.c | |
parent | e601d54a68531f54058379de6b5760d138c6fab8 (diff) |
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
Diffstat (limited to 'src/core/cs_access.c')
-rw-r--r-- | src/core/cs_access.c | 8 |
1 files changed, 6 insertions, 2 deletions
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; |