Commit Diff


commit - 48ea69d778279e7256a167e6f4147eb5766bbdda
commit + 925b4de2981b55a279f28368446f0a862c621d5e
blob - 260346c7ce6aec547731b8a0b36440f004270e8d
blob + 0b50bca659e40c3f89ed217c00d0ccf1de060be1
--- src/ngircd/irc-oper.c
+++ src/ngircd/irc-oper.c
@@ -50,7 +50,8 @@ Bad_OperPass(CLIENT *Client, char *errtoken, char *err
 {
 	Log(LOG_WARNING, "Got invalid OPER from \"%s\": \"%s\" -- %s",
 	    Client_Mask(Client), errtoken, errmsg);
-	return IRC_WriteErrClient(Client, ERR_PASSWDMISMATCH_MSG,
+	IRC_SetPenalty(Client, 10);
+	return IRC_WriteStrClient(Client, ERR_PASSWDMISMATCH_MSG,
 				  Client_ID(Client));
 } /* Bad_OperPass */