summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/cs_access.c8
-rw-r--r--version.log6
2 files changed, 11 insertions, 3 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;
diff --git a/version.log b/version.log
index 44e7a8e13..a758434a5 100644
--- a/version.log
+++ b/version.log
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="13"
VERSION_EXTRA="-svn"
-VERSION_BUILD="969"
+VERSION_BUILD="972"
# $Log$
#
+# BUILD : 1.7.13 (972)
+# BUGS :
+# NOTES : Fixed a bug involving EVENT_ACCESS_DEL.
+#
# BUILD : 1.7.13 (969)
# BUGS :
# NOTES : Fixed position of EVENT_ACCESS_DEL. HEADACHE!