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
|
@ -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]);
|
||||||
|
|
Loading…
Reference in a new issue