authproc: Don't try to notice dead clients

This commit is contained in:
Ed Kellett 2020-10-28 20:59:43 +00:00
parent 26c3681f7c
commit 1a16d47edb

View file

@ -202,7 +202,10 @@ cmd_notice_client(int parc, char **parv)
{ {
struct Client *client_p; 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; return;
sendto_one_notice(client_p, ":%s", parv[2]); sendto_one_notice(client_p, ":%s", parv[2]);