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.
This commit is contained in:
Douglas Freed 2013-01-20 13:34:19 +00:00
parent facf73262d
commit 1fab676c85
1 changed files with 3 additions and 1 deletions

View File

@ -103,7 +103,9 @@ aknl_nickhook(hook_user_nick_t *data)
const char *username; const char *username;
return_if_fail(data != NULL); return_if_fail(data != NULL);
return_if_fail(data->u != NULL);
if (!data->u)
return;
u = data->u; u = data->u;