Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / ircd / s_err.c
index ae219c628ca77f6d2ad6447beb8defa0af3cedae..07ee89b9efcc560a1c2241393a5df1420dc1c4b5 100644 (file)
  *
  * $Id$
  */
+#include "config.h"
+
 #include "numeric.h"
 #include "s_debug.h"
 #include "sprintf_irc.h"
 
 #include <assert.h>
+#include <string.h>
 
 static Numeric replyTable[] = {
 /* 000 */
@@ -34,7 +37,7 @@ static Numeric replyTable[] = {
 /* 003 */
   { RPL_CREATED, ":This server was created %s", "003" },
 /* 004 */
-  { RPL_MYINFO, "%s %s dioswkg biklmnopstv", "004" },
+  { RPL_MYINFO, "%s %s dioswkg biklmnopstv bklov", "004" },
 /* 005 */
   { RPL_ISUPPORT, "%s :are supported by this server", "005" },
 /* 006 */
@@ -430,11 +433,7 @@ static Numeric replyTable[] = {
 /* 199 */
   { 0 },
 /* 200 */
-#ifndef GODMODE
   { RPL_TRACELINK, "Link %s%s %s %s", "200" },
-#else /* GODMODE */
-  { RPL_TRACELINK, "Link %s%s %s %s " TIME_T_FMT, "200" },
-#endif /* GODMODE */
 /* 201 */
   { RPL_TRACECONNECTING, "Try. %d %s", "201" },
 /* 202 */
@@ -466,11 +465,11 @@ static Numeric replyTable[] = {
 /* 215 */
   { RPL_STATSILINE, "%c %s * %s %d %d", "215" },
 /* 216 */
-  { RPL_STATSKLINE, "%c %s %s %s %d %d", "216" },
+  { RPL_STATSKLINE, "%c %s \"%s\" %s 0 0", "216" },
 /* 217 */
   { RPL_STATSPLINE, "P %d %d %s %s", "217" },
 /* 218 */
-  { RPL_STATSYLINE, "%c %d %d %d %d %ld", "218" },
+  { RPL_STATSYLINE, "%c %d %d %d %d %ld %d", "218" },
 /* 219 */
   { RPL_ENDOFSTATS, "%c :End of /STATS report", "219" },
 /* 220 */
@@ -510,7 +509,7 @@ static Numeric replyTable[] = {
 /* 237 */
   { 0 },
 /* 238 */
-  { 0 },
+  { RPL_STATSFLINE, "%c %s %s", "238" },
 /* 239 */
   { 0 },
 /* 240 */
@@ -532,7 +531,7 @@ static Numeric replyTable[] = {
 /* 248 */
   { RPL_STATSULINE, "%c %s %s %s %d %d", "248" },
 /* 249 */
-  { 0 },
+  { RPL_STATSDEBUG, 0, "249" },
 /* 250 */
   { RPL_STATSCONN, ":Highest connection count: %d (%d clients)", "250" },
 /* 251 */
@@ -574,7 +573,7 @@ static Numeric replyTable[] = {
 /* 269 */
   { 0 },
 /* 270 */
-  { 0 },
+  { RPL_PRIVS, "%s :", "270" },
 /* 271 */
   { RPL_SILELIST, "%s %s", "271" },
 /* 272 */
@@ -602,7 +601,7 @@ static Numeric replyTable[] = {
 /* 283 */
   { RPL_ENDOFJUPELIST, ":End of Jupe List", "283" },
 /* 284 */
-  { 0 },
+  { RPL_FEATURE, 0, "284" },
 /* 285 */
   { 0 },
 /* 286 */
@@ -762,11 +761,7 @@ static Numeric replyTable[] = {
 /* 363 */
   { RPL_CLOSEEND, "%d :Connections Closed", "363" },
 /* 364 */
-#ifndef GODMODE
   { RPL_LINKS, "%s %s :%d P%u %s", "364" },
-#else /* GODMODE */
-  { RPL_LINKS, "%s %s :%d P%u " TIME_T_FMT " (%s) %s", "364" },
-#endif /* GODMODE */
 /* 365 */
   { RPL_ENDOFLINKS, "%s :End of /LINKS list.", "365" },
 /* 366 */
@@ -974,7 +969,7 @@ static Numeric replyTable[] = {
 /* 467 */
   { ERR_KEYSET, "%s :Channel key already set", "467" },
 /* 468 */
-  { ERR_INVALIDUSERNAME, "", "468" },
+  { ERR_INVALIDUSERNAME, 0, "468" },
 /* 469 */
   { 0 },
 /* 470 */
@@ -1006,7 +1001,7 @@ static Numeric replyTable[] = {
 /* 483 */
   { ERR_CANTKILLSERVER, ":You cant kill a server!", "483" },
 /* 484 */
-  { ERR_ISCHANSERVICE, "%s %s :Cannot kill, kick or deop channel service", "484" },
+  { ERR_ISCHANSERVICE, "%s %s :Cannot kill, kick or deop a network service", "484" },
 /* 485 */
   { 0 },
 /* 486 */
@@ -1024,15 +1019,15 @@ static Numeric replyTable[] = {
 /* 492 */
   { 0 },
 /* 493 */
-  { 0 },
+  { ERR_NOFEATURE, "%s :No such feature", "493" },
 /* 494 */
-  { 0 },
+  { ERR_BADFEATVALUE, "%s :Bad value for feature %s", "494" },
 /* 495 */
-  { 0 },
+  { ERR_BADLOGTYPE, "%s :No such log type", "495" },
 /* 496 */
-  { 0 },
+  { ERR_BADLOGSYS, "%s :No such log subsystem", "496" },
 /* 497 */
-  { 0 },
+  { ERR_BADLOGVALUE, "%s :Bad value for log type", "497" },
 /* 498 */
   { ERR_ISOPERLCHAN, "%s %s :Cannot kick or deop an IRC Operator on a local channel", "498" },
 /* 499 */
@@ -1064,7 +1059,7 @@ static Numeric replyTable[] = {
 /* 512 */
   { ERR_NOSUCHGLINE, "%s :No such gline", "512" },
 /* 513 */
-  { ERR_BADPING, "", "513" },
+  { ERR_BADPING, 0, "513" },
 /* 514 */
   { ERR_NOSUCHJUPE, "%s :No such jupe", "514" },
 /* 515 */
@@ -1072,9 +1067,9 @@ static Numeric replyTable[] = {
 /* 516 */
   { ERR_DONTCHEAT, " :Don't Cheat.", "516" },
 /* 517 */
-  { 0 },
+  { ERR_DISABLED, "%s :Command disabled.", "517" },
 /* 518 */
-  { ERR_POPTIX, " :While you have been watching us chat in your status window, we have HaX0rd your computer", "666" },
+  { 0 },
 /* 519 */
   { 0 },
 /* 520 */