From 1a16d47edba8606b014a53dd3203658d5432fdef Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Wed, 28 Oct 2020 20:59:43 +0000 Subject: [PATCH] authproc: Don't try to notice dead clients --- ircd/authproc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ircd/authproc.c b/ircd/authproc.c index 68078c0e..2cb21648 100644 --- a/ircd/authproc.c +++ b/ircd/authproc.c @@ -202,7 +202,10 @@ cmd_notice_client(int parc, char **parv) { struct Client *client_p; - if((client_p = str_cid_to_client(parv[1], false)) == NULL) + if ((client_p = str_cid_to_client(parv[1], false)) == NULL) + return; + + if (IsAnyDead(client_p)) return; sendto_one_notice(client_p, ":%s", parv[2]);