diff options
| author | Federico G. Schwindt <fgsch@lodoss.net> | 2013-11-07 10:45:34 +0000 |
|---|---|---|
| committer | Federico G. Schwindt <fgsch@lodoss.net> | 2013-11-07 10:45:34 +0000 |
| commit | 00249f3c805ec0b4564901dce0f3a7b0c20ce439 (patch) | |
| tree | 1d344452609b1a12583723a935f6fe26e32513a5 | |
| parent | 925b4de2981b55a279f28368446f0a862c621d5e (diff) | |
| download | ngircd-00249f3c805ec0b4564901dce0f3a7b0c20ce439.tar.gz ngircd-00249f3c805ec0b4564901dce0f3a7b0c20ce439.zip | |
When sending an error use the IRC_WriteErrClient() variant
This ensures that all errors have a 2 second penalty.
| -rw-r--r-- | src/ngircd/irc-macros.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/irc-macros.h b/src/ngircd/irc-macros.h index 5a7ec639..dc18641d 100644 --- a/src/ngircd/irc-macros.h +++ b/src/ngircd/irc-macros.h @@ -78,7 +78,7 @@ if (Req->argc < Min || Req->argc > Max) { \ else \ Sender = Client; \ if (!Sender) \ - return IRC_WriteStrClient(Client, ERR_NOSUCHNICK_MSG, \ + return IRC_WriteErrClient(Client, ERR_NOSUCHNICK_MSG, \ Client_ID(Client), Req->prefix); /** @@ -97,7 +97,7 @@ if (Req->argc < Min || Req->argc > Max) { \ if (!Target) \ Target = Client_SearchServer(Req->argv[Argc]); \ if (!Target) \ - return IRC_WriteStrClient(From, ERR_NOSUCHSERVER_MSG, \ + return IRC_WriteErrClient(From, ERR_NOSUCHSERVER_MSG, \ Client_ID(From), Req->argv[Argc]); \ if (Client_Type(Target) != CLIENT_SERVER) \ Target = Client_Introducer(Target); \ |