authproc: Don't try to notice dead clients
This commit is contained in:
parent
26c3681f7c
commit
1a16d47edb
1 changed files with 4 additions and 1 deletions
|
@ -205,6 +205,9 @@ cmd_notice_client(int parc, char **parv)
|
||||||
if ((client_p = str_cid_to_client(parv[1], false)) == NULL)
|
if ((client_p = str_cid_to_client(parv[1], false)) == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (IsAnyDead(client_p))
|
||||||
|
return;
|
||||||
|
|
||||||
sendto_one_notice(client_p, ":%s", parv[2]);
|
sendto_one_notice(client_p, ":%s", parv[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue