Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / ircd / s_err.c
index 53523f5d41e76ca9aa82927c55859d4892a26179..26794560e8cac477dc7d44e1844fe9268003b0e8 100644 (file)
@@ -300,7 +300,9 @@ static Numeric numeric_errors[] = {
 /* 514 */
   { ERR_NOSUCHJUPE, "%s :No such jupe", "514" },
 /* 515 */
-  { ERR_BADEXPIRE, TIME_T_FMT " :Bad expire time", "515" }
+  { ERR_BADEXPIRE, TIME_T_FMT " :Bad expire time", "515" },
+/* 516 */
+  { ERR_DONTCHEAT, " :Don't Cheat.", 516 }
 };
 
 static Numeric numeric_replies[] = {
@@ -688,7 +690,7 @@ const struct Numeric* get_error_numeric(int numeric)
 {
   int num = numeric;
   assert(ERR_FIRSTERROR < num);
-  assert(num < ERR_INVALID_ERROR);
+  assert(num < ERR_LASTERROR);
 
   num -= ERR_FIRSTERROR;
   assert(0 != numeric_errors[num].value);