When sending an error use the IRC_WriteErrClient() variant
authorFederico G. Schwindt <fgsch@lodoss.net>
Thu, 7 Nov 2013 10:45:34 +0000 (10:45 +0000)
committerFederico G. Schwindt <fgsch@lodoss.net>
Thu, 7 Nov 2013 10:45:34 +0000 (10:45 +0000)
This ensures that all errors have a 2 second penalty.

src/ngircd/irc-macros.h

index 5a7ec639ba4a935b5281a5a9181d66feeb8ac250..dc18641d072f47b6220ecc08cca3d838240476ed 100644 (file)
@@ -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); \