From 1fab676c8565855e8386ab8868b1347af20001ff Mon Sep 17 00:00:00 2001 From: Douglas Freed Date: Sun, 20 Jan 2013 13:34:19 +0000 Subject: [PATCH] os_akillnicklist: Don't assert data->u != NULL data->u can be NULL in legitimate cases, such as operserv/clones having already killed the user, so silently return if this is the case, rather than printing an error message. --- os_akillnicklist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/os_akillnicklist.c b/os_akillnicklist.c index bde893a..17b1490 100644 --- a/os_akillnicklist.c +++ b/os_akillnicklist.c @@ -103,7 +103,9 @@ aknl_nickhook(hook_user_nick_t *data) const char *username; return_if_fail(data != NULL); - return_if_fail(data->u != NULL); + + if (!data->u) + return; u = data->u;