mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 09:50:29 +00:00
When sending an error use the IRC_WriteErrClient() variant
This ensures that all errors have a 2 second penalty.
This commit is contained in:
parent
925b4de298
commit
00249f3c80
@ -78,7 +78,7 @@ if (Req->argc < Min || Req->argc > Max) { \
|
|||||||
else \
|
else \
|
||||||
Sender = Client; \
|
Sender = Client; \
|
||||||
if (!Sender) \
|
if (!Sender) \
|
||||||
return IRC_WriteStrClient(Client, ERR_NOSUCHNICK_MSG, \
|
return IRC_WriteErrClient(Client, ERR_NOSUCHNICK_MSG, \
|
||||||
Client_ID(Client), Req->prefix);
|
Client_ID(Client), Req->prefix);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -97,7 +97,7 @@ if (Req->argc < Min || Req->argc > Max) { \
|
|||||||
if (!Target) \
|
if (!Target) \
|
||||||
Target = Client_SearchServer(Req->argv[Argc]); \
|
Target = Client_SearchServer(Req->argv[Argc]); \
|
||||||
if (!Target) \
|
if (!Target) \
|
||||||
return IRC_WriteStrClient(From, ERR_NOSUCHSERVER_MSG, \
|
return IRC_WriteErrClient(From, ERR_NOSUCHSERVER_MSG, \
|
||||||
Client_ID(From), Req->argv[Argc]); \
|
Client_ID(From), Req->argv[Argc]); \
|
||||||
if (Client_Type(Target) != CLIENT_SERVER) \
|
if (Client_Type(Target) != CLIENT_SERVER) \
|
||||||
Target = Client_Introducer(Target); \
|
Target = Client_Introducer(Target); \
|
||||||
|
Loading…
Reference in New Issue
Block a user