diff --git a/include/messages.h b/include/messages.h new file mode 100644 index 00000000..0b850d0a --- /dev/null +++ b/include/messages.h @@ -0,0 +1,252 @@ +/************************************************************************ + * IRC - Internet Relay Chat, include/messages.h + * Copyright (C) 1992 Darren Reed + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 1, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * $Id: messages.tab 3548 2007-08-09 06:40:52Z nenolod $ + */ + +#ifndef INCLUDED_messages_h +#define INCLUDED_messages_h + +/* + * form_str - return a format string for a message number + * messages are defined below + */ + +#define FORM_STR1(n) NUMERIC_STR_##n +#define form_str(n) FORM_STR1(n) + +#define NUMERIC_STR_1 ":Welcome to the %s Internet Relay Chat Network %s" +#define NUMERIC_STR_2 ":Your host is %s, running version %s" +#define NUMERIC_STR_3 ":This server was created %s" +#define NUMERIC_STR_4 "%s %s %s %s bkloveqjfI" +#define NUMERIC_STR_5 "%s :are supported by this server" +#define NUMERIC_STR_8 "%s :Server notice mask" +#define NUMERIC_STR_10 "%s %d :Please use this Server/Port instead" +#define NUMERIC_STR_15 ":%s" +#define NUMERIC_STR_17 ":End of /MAP" +#define NUMERIC_STR_43 "%s :Nick collision, forcing nick change to your unique ID" +#define NUMERIC_STR_200 "Link %s %s %s" +#define NUMERIC_STR_201 "Try. %s %s" +#define NUMERIC_STR_202 "H.S. %s %s" +#define NUMERIC_STR_203 "???? %s %s (%s) %d" +#define NUMERIC_STR_204 "Oper %s %s (%s) %lu %lu" +#define NUMERIC_STR_205 "User %s %s (%s) %lu %lu" +#define NUMERIC_STR_206 "Serv %s %dS %dC %s %s!%s@%s %lu" +#define NUMERIC_STR_208 " 0 %s" +#define NUMERIC_STR_209 "Class %s %d" +#define NUMERIC_STR_212 "%s %u %lu :%u" +#define NUMERIC_STR_213 "C %s %s %s %d %s" +#define NUMERIC_STR_215 "I %s %s %s@%s %d %s" +#define NUMERIC_STR_216 "%c %s * %s :%s%s%s" +#define NUMERIC_STR_217 "%c %d %s :%s" +#define NUMERIC_STR_218 "Y %s %d %d %d %u %d.%d %d.%d %u" +#define NUMERIC_STR_219 "%c :End of /STATS report" +#define NUMERIC_STR_220 "%c %d %s %d :%s%s" +#define NUMERIC_STR_221 "%s" +#define NUMERIC_STR_225 "%c %s :%s%s%s" +#define NUMERIC_STR_241 "L %s * %s 0 -1" +#define NUMERIC_STR_242 ":Server Up %d days, %d:%02d:%02d" +#define NUMERIC_STR_243 "O %s@%s * %s %s %s" +#define NUMERIC_STR_244 "H %s * %s 0 -1" +#define NUMERIC_STR_247 "%c %d %s :%s" + +#define NUMERIC_STR_248 "U %s %s@%s %s" +#define NUMERIC_STR_250 ":Highest connection count: %d (%d clients) (%lu connections received)" +#define NUMERIC_STR_251 ":There are %d users and %d invisible on %d servers" +#define NUMERIC_STR_252 "%d :IRC Operators online" +#define NUMERIC_STR_253 "%d :unknown connection(s)" +#define NUMERIC_STR_254 "%lu :channels formed" +#define NUMERIC_STR_255 ":I have %d clients and %d servers" +#define NUMERIC_STR_256 ":Administrative info about %s" +#define NUMERIC_STR_257 ":%s" +#define NUMERIC_STR_258 ":%s" +#define NUMERIC_STR_259 ":%s" +#define NUMERIC_STR_262 "%s :End of TRACE" +#define NUMERIC_STR_263 ":%s 263 %s %s :This command could not be completed because it has been used recently, and is rate-limited." +#define NUMERIC_STR_265 "%d %d :Current local users %d, max %d" +#define NUMERIC_STR_266 "%d %d :Current global users %d, max %d" +#define NUMERIC_STR_270 "%s :%s" +#define NUMERIC_STR_276 "%s :has client certificate fingerprint %s" +#define NUMERIC_STR_281 ":%s 281 %s %s" +#define NUMERIC_STR_282 ":%s 282 %s :End of /ACCEPT list." +#define NUMERIC_STR_301 "%s :%s" +#define NUMERIC_STR_302 ":%s 302 %s :%s" +#define NUMERIC_STR_303 ":%s 303 %s :" +#define NUMERIC_STR_305 ":You are no longer marked as being away" +#define NUMERIC_STR_306 ":You have been marked as being away" +#define NUMERIC_STR_311 "%s %s %s * :%s" +#define NUMERIC_STR_312 "%s %s :%s" +#define NUMERIC_STR_313 "%s :%s" +#define NUMERIC_STR_314 ":%s 314 %s %s %s %s * :%s" +#define NUMERIC_STR_315 ":%s 315 %s %s :End of /WHO list." +#define NUMERIC_STR_317 "%s %d %d :seconds idle, signon time" +#define NUMERIC_STR_318 "%s :End of /WHOIS list." +#define NUMERIC_STR_319 ":%s 319 %s %s :" +#define NUMERIC_STR_321 ":%s 321 %s Channel :Users Name" +#define NUMERIC_STR_322 ":%s 322 %s %s%s %lu :%s" +#define NUMERIC_STR_323 ":%s 323 %s :End of /LIST" +#define NUMERIC_STR_324 ":%s 324 %s %s %s" +#define NUMERIC_STR_325 ":%s 325 %s %s %s :is the current channel mode-lock" +#define NUMERIC_STR_329 ":%s 329 %s %s %lu" +#define NUMERIC_STR_330 "%s %s :is logged in as" +#define NUMERIC_STR_331 ":%s 331 %s %s :No topic is set." +#define NUMERIC_STR_332 ":%s 332 %s %s :%s" +#define NUMERIC_STR_333 ":%s 333 %s %s %s %lu" +#define NUMERIC_STR_337 "%s :%s" +#define NUMERIC_STR_338 "%s %s :actually using host" +#define NUMERIC_STR_341 ":%s 341 %s %s %s" +#define NUMERIC_STR_346 ":%s 346 %s %s %s %s %lu" +#define NUMERIC_STR_347 ":%s 347 %s %s :End of Channel Invite List" +#define NUMERIC_STR_348 ":%s 348 %s %s %s %s %lu" +#define NUMERIC_STR_349 ":%s 349 %s %s :End of Channel Exception List" +#ifndef CUSTOM_BRANDING +#define NUMERIC_STR_351 "%s(%s). %s :%s TS%dow %s" +#else +#define NUMERIC_STR_351 "%s(%s, %s). %s :%s TS%dow %s" +#endif +#define NUMERIC_STR_352 ":%s 352 %s %s %s %s %s %s %s :%d %s" +#define NUMERIC_STR_353 ":%s 353 %s %s %s :" +#define NUMERIC_STR_360 ":%s 360 %s %s :was connecting from *@%s %s" +#define NUMERIC_STR_362 ":%s 362 %s %s :Closed. Status = %d" +#define NUMERIC_STR_363 ":%s 363 %s %d :Connections Closed" +#define NUMERIC_STR_364 "%s %s :%d %s" +#define NUMERIC_STR_365 "%s :End of /LINKS list." +#define NUMERIC_STR_366 ":%s 366 %s %s :End of /NAMES list." +#define NUMERIC_STR_367 ":%s 367 %s %s %s %s %lu" +#define NUMERIC_STR_368 ":%s 368 %s %s :End of Channel Ban List" +#define NUMERIC_STR_369 ":%s 369 %s %s :End of WHOWAS" +#define NUMERIC_STR_371 ":%s" +#define NUMERIC_STR_372 ":%s 372 %s :- %s" +#define NUMERIC_STR_374 ":End of /INFO list." +#define NUMERIC_STR_375 ":%s 375 %s :- %s Message of the Day - " +#define NUMERIC_STR_376 ":%s 376 %s :End of /MOTD command." +#define NUMERIC_STR_378 "%s :is connecting from *@%s %s" +#define NUMERIC_STR_381 ":%s 381 %s :We would like to take this moment to remind you that we accept absolutely no liability for the insanity you're about to endure." +#define NUMERIC_STR_382 ":%s 382 %s %s :Rehashing" +#define NUMERIC_STR_386 ":%s 386 %s :%s" +#define NUMERIC_STR_391 "%s :%s" +#define NUMERIC_STR_401 "%s :No such nick/channel" +#define NUMERIC_STR_402 "%s :No such server" +#define NUMERIC_STR_403 "%s :No such channel" +#define NUMERIC_STR_404 "%s :Cannot send to channel" +#define NUMERIC_STR_405 ":%s 405 %s %s :You have joined too many channels" +#define NUMERIC_STR_406 ":%s 406 %s %s :There was no such nickname" +#define NUMERIC_STR_407 ":%s 407 %s %s :Too many recipients." +#define NUMERIC_STR_409 ":%s 409 %s :No origin specified" +#define NUMERIC_STR_410 ":%s 410 %s %s :Invalid CAP subcommand" +#define NUMERIC_STR_411 ":%s 411 %s :No recipient given (%s)" +#define NUMERIC_STR_412 ":%s 412 %s :No text to send" +#define NUMERIC_STR_413 "%s :No toplevel domain specified" +#define NUMERIC_STR_414 "%s :Wildcard in toplevel Domain" +#define NUMERIC_STR_416 ":%s 416 %s %s :output too large, truncated" +#define NUMERIC_STR_421 ":%s 421 %s %s :Unknown command" +#define NUMERIC_STR_422 ":%s 422 %s :MOTD File is missing" +#define NUMERIC_STR_431 ":%s 431 %s :No nickname given" +#define NUMERIC_STR_432 ":%s 432 %s %s :Erroneous Nickname" +#define NUMERIC_STR_433 ":%s 433 %s %s :Nickname is already in use." +#define NUMERIC_STR_435 "%s %s :Cannot change nickname while banned on channel" +#define NUMERIC_STR_436 "%s :Nickname collision KILL" +#define NUMERIC_STR_437 ":%s 437 %s %s :Nick/channel is temporarily unavailable" +#define NUMERIC_STR_438 ":%s 438 %s %s %s :Nick change too fast. Please wait %d seconds." +#define NUMERIC_STR_440 "%s :Services are currently unavailable" +#define NUMERIC_STR_441 "%s %s :They aren't on that channel" +#define NUMERIC_STR_442 "%s :You're not on that channel" +#define NUMERIC_STR_443 "%s %s :is already on channel" +#define NUMERIC_STR_451 ":%s 451 * :You have not registered" +#define NUMERIC_STR_456 ":%s 456 %s :Accept list is full" +#define NUMERIC_STR_457 ":%s 457 %s %s :is already on your accept list" +#define NUMERIC_STR_458 ":%s 458 %s %s :is not on your accept list" +#define NUMERIC_STR_461 ":%s 461 %s %s :Not enough parameters" +#define NUMERIC_STR_462 ":%s 462 %s :You may not reregister" +#define NUMERIC_STR_464 ":%s 464 %s :Password Incorrect" +#define NUMERIC_STR_465 ":%s 465 %s :You are banned from this server- %s" +#define NUMERIC_STR_470 "%s %s :Forwarding to another channel" +#define NUMERIC_STR_471 ":%s 471 %s %s :Cannot join channel (+l) - channel is full, try again later" +#define NUMERIC_STR_472 ":%s 472 %s %c :is an unknown mode char to me" +#define NUMERIC_STR_473 ":%s 473 %s %s :Cannot join channel (+i) - you must be invited" +#define NUMERIC_STR_474 ":%s 474 %s %s :Cannot join channel (+b) - you are banned" +#define NUMERIC_STR_475 ":%s 475 %s %s :Cannot join channel (+k) - bad key" +#define NUMERIC_STR_477 ":%s 477 %s %s :Cannot join channel (+r) - you need to be identified with services" +#define NUMERIC_STR_478 ":%s 478 %s %s %s :Channel ban list is full" +#define NUMERIC_STR_479 "%s :Illegal channel name" +#define NUMERIC_STR_480 ":%s 480 %s %s :Cannot join channel (+j) - throttle exceeded, try again later" +#define NUMERIC_STR_481 ":Permission Denied - You're not an IRC operator" +#define NUMERIC_STR_482 ":%s 482 %s %s :You're not a channel operator" +#define NUMERIC_STR_483 ":You can't kill a server!" +#define NUMERIC_STR_484 ":%s 484 %s %s %s :Cannot kick or deop a network service" +#define NUMERIC_STR_486 "%s :You must log in with services to message this user" +#define NUMERIC_STR_489 ":%s 489 %s %s :You're neither voiced nor channel operator" +#define NUMERIC_STR_491 ":No appropriate operator blocks were found for your host" +#define NUMERIC_STR_494 "%s :cannot answer you while you are %s, your message was not sent" +#define NUMERIC_STR_501 ":%s 501 %s :Unknown MODE flag" +#define NUMERIC_STR_502 ":%s 502 %s :Can't change mode for other users" +#define NUMERIC_STR_504 ":%s 504 %s %s :User is not on this server" +#define NUMERIC_STR_513 ":%s 513 %s :To connect type /QUOTE PONG %08lX" +#define NUMERIC_STR_517 "%s :This command has been administratively disabled" +#define NUMERIC_STR_524 ":%s 524 %s %s :Help not found" +#define NUMERIC_STR_670 ":STARTTLS successful, proceed with TLS handshake" +#define NUMERIC_STR_671 "%s :is using a secure connection" +#define NUMERIC_STR_691 ":%s" +#define NUMERIC_STR_702 ":%s 702 %s %s 0x%x %s %s" +#define NUMERIC_STR_703 ":%s 703 %s :End of /MODLIST." +#define NUMERIC_STR_704 ":%s 704 %s %s :%s" +#define NUMERIC_STR_705 ":%s 705 %s %s :%s" +#define NUMERIC_STR_706 ":%s 706 %s %s :End of /HELP." +#define NUMERIC_STR_707 ":%s 707 %s %s :Targets changing too fast, message dropped" +#define NUMERIC_STR_708 ":%s 708 %s %s %s %s %s %s %s %s :%s" +#define NUMERIC_STR_709 ":%s 709 %s %s %s %s %s %s %s :%s" +#define NUMERIC_STR_710 ":%s 710 %s %s %s!%s@%s :has asked for an invite." +#define NUMERIC_STR_711 ":%s 711 %s %s :Your KNOCK has been delivered." +#define NUMERIC_STR_712 ":%s 712 %s %s :Too many KNOCKs (%s)." +#define NUMERIC_STR_713 "%s :Channel is open." +#define NUMERIC_STR_714 ":%s 714 %s %s :You are already on that channel." +#define NUMERIC_STR_715 ":%s 715 %s :KNOCKs are disabled." +#define NUMERIC_STR_716 "%s :is in +g mode (server-side ignore.)" +#define NUMERIC_STR_717 "%s :has been informed that you messaged them." +#define NUMERIC_STR_718 ":%s 718 %s %s %s@%s :is messaging you, and you have umode +g." +#define NUMERIC_STR_720 ":%s 720 %s :Start of OPER MOTD" +#define NUMERIC_STR_721 ":%s 721 %s :%s" +#define NUMERIC_STR_722 ":%s 722 %s :End of OPER MOTD" +#define NUMERIC_STR_723 ":%s 723 %s %s :Insufficient oper privs" +#define NUMERIC_STR_725 ":%s 725 %s %c %ld %s :%s" +#define NUMERIC_STR_726 ":%s 726 %s %s :No matches" +#define NUMERIC_STR_727 ":%s 727 %s %d %d %s!%s@%s %s :Local/remote clients match" +#define NUMERIC_STR_728 ":%s 728 %s %s q %s %s %lu" +#define NUMERIC_STR_729 ":%s 729 %s %s q :End of Channel Quiet List" +#define NUMERIC_STR_730 ":%s 730 %s :%s" +#define NUMERIC_STR_731 ":%s 731 %s :%s" +#define NUMERIC_STR_732 ":%s 732 %s :%s" +#define NUMERIC_STR_733 ":%s 733 %s :End of MONITOR list" +#define NUMERIC_STR_734 ":%s 734 %s %d %s :Monitor list is full" +#define NUMERIC_STR_740 ":%s 740 %s :%s" +#define NUMERIC_STR_741 ":%s 741 %s :End of CHALLENGE" +#define NUMERIC_STR_742 "%s %c %s :MODE cannot be set due to channel having an active MLOCK restriction policy" +#define NUMERIC_STR_743 "%s %c %s :Invalid ban mask" +#define NUMERIC_STR_750 "%d :matches" +#define NUMERIC_STR_751 "%s %s %s %s %s %s :%s" +#define NUMERIC_STR_900 ":%s 900 %s %s!%s@%s %s :You are now logged in as %s." +#define NUMERIC_STR_901 ":%s 901 %s %s!%s@%s :You are now logged out." +#define NUMERIC_STR_902 ":%s 902 %s :You must use a nick assigned to you." +#define NUMERIC_STR_903 ":%s 903 %s :SASL authentication successful" +#define NUMERIC_STR_904 ":%s 904 %s :SASL authentication failed" +#define NUMERIC_STR_905 ":%s 905 %s :SASL message too long" +#define NUMERIC_STR_906 ":%s 906 %s :SASL authentication aborted" +#define NUMERIC_STR_907 ":%s 907 %s :You have already completed SASL authentication" +#define NUMERIC_STR_908 ":%s 908 %s %s :are available SASL mechanisms" + +#endif diff --git a/include/numeric.h b/include/numeric.h index 581c51fb..88b5c096 100644 --- a/include/numeric.h +++ b/include/numeric.h @@ -28,23 +28,18 @@ #define INCLUDED_numeric_h #include "config.h" - -/* - * form_str - return a format string for a message number - * messages are defined below - */ -extern const char *form_str(int); +#include "messages.h" /* * Reserve numerics 000-099 for server-client connections where the client * is local to the server. If any server is passed a numeric in this range * from another server then it is remapped to 100-199. -avalon */ -#define RPL_WELCOME 001 -#define RPL_YOURHOST 002 -#define RPL_CREATED 003 -#define RPL_MYINFO 004 -#define RPL_ISUPPORT 005 +#define RPL_WELCOME 1 +#define RPL_YOURHOST 2 +#define RPL_CREATED 3 +#define RPL_MYINFO 4 +#define RPL_ISUPPORT 5 #define RPL_SNOMASK 8 diff --git a/modules/core/m_join.c b/modules/core/m_join.c index 339aaa3a..bba9eaf1 100644 --- a/modules/core/m_join.c +++ b/modules/core/m_join.c @@ -256,8 +256,10 @@ m_join(struct Client *client_p, struct Client *source_p, int parc, const char *p if(moduledata.approved != 0) { +#ifdef XXX_NOTYET sendto_one(source_p, form_str(moduledata.approved), me.name, source_p->name, name); +#endif continue; } @@ -302,9 +304,10 @@ m_join(struct Client *client_p, struct Client *source_p, int parc, const char *p * see extensions/chm_operonly.c for other comments on this * -- dwr */ +#ifdef XXX_NOTYET if(i != ERR_CUSTOM) sendto_one(source_p, form_str(i), me.name, source_p->name, name); - +#endif continue; } else if(chptr != chptr2) diff --git a/modules/m_trace.c b/modules/m_trace.c index 4d273688..c3a3891c 100644 --- a/modules/m_trace.c +++ b/modules/m_trace.c @@ -380,10 +380,9 @@ report_this_status(struct Client *source_p, struct Client *target_p) case STAT_CLIENT: { - int tnumeric; - - tnumeric = IsOper(target_p) ? RPL_TRACEOPERATOR : RPL_TRACEUSER; - sendto_one_numeric(source_p, tnumeric, form_str(tnumeric), + sendto_one_numeric(source_p, + IsOper(target_p) ? RPL_TRACEOPERATOR : RPL_TRACEUSER, + IsOper(target_p) ? form_str(RPL_TRACEOPERATOR) : form_str(RPL_TRACEUSER), class_name, name, show_ip(source_p, target_p) ? ip : empty_sockhost, (unsigned long)(rb_current_time() - target_p->localClient->lasttime), diff --git a/src/Makefile.in b/src/Makefile.in index a2fd0c70..48a7795e 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -81,7 +81,6 @@ SRCS = \ modules.c \ monitor.c \ newconf.c \ - numeric.c \ operhash.c \ packet.c \ parse.c \ diff --git a/src/chmode.c b/src/chmode.c index 4188f1d3..1191fe9d 100644 --- a/src/chmode.c +++ b/src/chmode.c @@ -745,8 +745,8 @@ chm_ban(struct Client *source_p, struct Channel *chptr, rb_dlink_node *ptr; struct Ban *banptr; int errorval; - int rpl_list; - int rpl_endlist; + const char *rpl_list_p; + const char *rpl_endlist_p; int caps; int mems; @@ -755,8 +755,8 @@ chm_ban(struct Client *source_p, struct Channel *chptr, case CHFL_BAN: list = &chptr->banlist; errorval = SM_ERR_RPL_B; - rpl_list = RPL_BANLIST; - rpl_endlist = RPL_ENDOFBANLIST; + rpl_list_p = form_str(RPL_BANLIST); + rpl_endlist_p = form_str(RPL_ENDOFBANLIST); mems = ALL_MEMBERS; caps = 0; break; @@ -769,8 +769,8 @@ chm_ban(struct Client *source_p, struct Channel *chptr, list = &chptr->exceptlist; errorval = SM_ERR_RPL_E; - rpl_list = RPL_EXCEPTLIST; - rpl_endlist = RPL_ENDOFEXCEPTLIST; + rpl_list_p = form_str(RPL_EXCEPTLIST); + rpl_endlist_p = form_str(RPL_ENDOFEXCEPTLIST); caps = CAP_EX; if(ConfigChannel.use_except || (dir == MODE_DEL)) @@ -787,8 +787,8 @@ chm_ban(struct Client *source_p, struct Channel *chptr, list = &chptr->invexlist; errorval = SM_ERR_RPL_I; - rpl_list = RPL_INVITELIST; - rpl_endlist = RPL_ENDOFINVITELIST; + rpl_list_p = form_str(RPL_INVITELIST); + rpl_endlist_p = form_str(RPL_ENDOFINVITELIST); caps = CAP_IE; if(ConfigChannel.use_invex || (dir == MODE_DEL)) @@ -800,8 +800,8 @@ chm_ban(struct Client *source_p, struct Channel *chptr, case CHFL_QUIET: list = &chptr->quietlist; errorval = SM_ERR_RPL_Q; - rpl_list = RPL_QUIETLIST; - rpl_endlist = RPL_ENDOFQUIETLIST; + rpl_list_p = form_str(RPL_QUIETLIST); + rpl_endlist_p = form_str(RPL_ENDOFQUIETLIST); mems = ALL_MEMBERS; caps = 0; break; @@ -839,11 +839,11 @@ chm_ban(struct Client *source_p, struct Channel *chptr, else rb_strlcpy(buf, banptr->banstr, sizeof(buf)); - sendto_one(source_p, form_str(rpl_list), + sendto_one(source_p, rpl_list_p, me.name, source_p->name, chptr->chname, buf, banptr->who, banptr->when); } - sendto_one(source_p, form_str(rpl_endlist), me.name, source_p->name, chptr->chname); + sendto_one(source_p, rpl_endlist_p, me.name, source_p->name, chptr->chname); return; } diff --git a/src/messages.tab b/src/messages.tab deleted file mode 100644 index 236b41af..00000000 --- a/src/messages.tab +++ /dev/null @@ -1,1028 +0,0 @@ -/************************************************************************ - * IRC - Internet Relay Chat, src/messages.tab - * Copyright (C) 1992 Darren Reed - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 1, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: messages.tab 3548 2007-08-09 06:40:52Z nenolod $ - */ - -static const char * replies[] = { -/* 000 */ NULL, -/* 001 RPL_WELCOME, */ ":Welcome to the %s Internet Relay Chat Network %s", -/* 002 RPL_YOURHOST,*/ ":Your host is %s, running version %s", -/* 003 RPL_CREATED, */ ":This server was created %s", -/* 004 RPL_MYINFO, */ "%s %s %s %s bkloveqjfI", -/* 005 RPL_ISUPPORT, */ "%s :are supported by this server", -/* 006 */ NULL, -/* 007 */ NULL, -/* 008 RPL_SNOMASK */ "%s :Server notice mask", -/* 009 */ NULL, -/* 010 RPL_REDIR, */ "%s %d :Please use this Server/Port instead", -/* 011 */ NULL, -/* 012 */ NULL, -/* 013 */ NULL, -/* 014 */ NULL, -/* 015 RPL_MAP */ ":%s", -/* 016 */ NULL, -/* 017 RPL_MAPEND */ ":End of /MAP", -/* 018 */ NULL, -/* 019 */ NULL, -/* 020 */ NULL, -/* 021 */ NULL, -/* 022 */ NULL, -/* 023 */ NULL, -/* 024 */ NULL, -/* 025 */ NULL, -/* 026 */ NULL, -/* 027 */ NULL, -/* 028 */ NULL, -/* 029 */ NULL, -/* 030 */ NULL, -/* 031 */ NULL, -/* 032 */ NULL, -/* 033 */ NULL, -/* 034 */ NULL, -/* 035 */ NULL, -/* 036 */ NULL, -/* 037 */ NULL, -/* 038 */ NULL, -/* 039 */ NULL, -/* 040 */ NULL, -/* 041 */ NULL, -/* 042 */ NULL, -/* 043 RPL_SAVENICK */ "%s :Nick collision, forcing nick change to your unique ID", -/* 044 */ NULL, -/* 045 */ NULL, -/* 046 */ NULL, -/* 047 */ NULL, -/* 048 */ NULL, -/* 049 */ NULL, -/* 050 */ NULL, -/* 051 */ NULL, -/* 052 */ NULL, -/* 053 */ NULL, -/* 054 */ NULL, -/* 055 */ NULL, -/* 056 */ NULL, -/* 057 */ NULL, -/* 058 */ NULL, -/* 059 */ NULL, -/* 060 */ NULL, -/* 061 */ NULL, -/* 062 */ NULL, -/* 063 */ NULL, -/* 064 */ NULL, -/* 065 */ NULL, -/* 066 */ NULL, -/* 067 */ NULL, -/* 068 */ NULL, -/* 069 */ NULL, -/* 070 */ NULL, -/* 071 */ NULL, -/* 072 */ NULL, -/* 073 */ NULL, -/* 074 */ NULL, -/* 075 */ NULL, -/* 076 */ NULL, -/* 077 */ NULL, -/* 078 */ NULL, -/* 079 */ NULL, -/* 080 */ NULL, -/* 081 */ NULL, -/* 082 */ NULL, -/* 083 */ NULL, -/* 084 */ NULL, -/* 085 */ NULL, -/* 086 */ NULL, -/* 087 */ NULL, -/* 088 */ NULL, -/* 089 */ NULL, -/* 090 */ NULL, -/* 091 */ NULL, -/* 092 */ NULL, -/* 093 */ NULL, -/* 094 */ NULL, -/* 095 */ NULL, -/* 096 */ NULL, -/* 097 */ NULL, -/* 098 */ NULL, -/* 099 */ NULL, -/* 100 */ NULL, -/* 101 */ NULL, -/* 102 */ NULL, -/* 103 */ NULL, -/* 104 */ NULL, -/* 105 */ NULL, -/* 106 */ NULL, -/* 107 */ NULL, -/* 108 */ NULL, -/* 109 */ NULL, -/* 110 */ NULL, -/* 111 */ NULL, -/* 112 */ NULL, -/* 113 */ NULL, -/* 114 */ NULL, -/* 115 */ NULL, -/* 116 */ NULL, -/* 117 */ NULL, -/* 118 */ NULL, -/* 119 */ NULL, -/* 120 */ NULL, -/* 121 */ NULL, -/* 122 */ NULL, -/* 123 */ NULL, -/* 124 */ NULL, -/* 125 */ NULL, -/* 126 */ NULL, -/* 127 */ NULL, -/* 128 */ NULL, -/* 129 */ NULL, -/* 130 */ NULL, -/* 131 */ NULL, -/* 132 */ NULL, -/* 133 */ NULL, -/* 134 */ NULL, -/* 135 */ NULL, -/* 136 */ NULL, -/* 137 */ NULL, -/* 138 */ NULL, -/* 139 */ NULL, -/* 140 */ NULL, -/* 141 */ NULL, -/* 142 */ NULL, -/* 143 */ NULL, -/* 144 */ NULL, -/* 145 */ NULL, -/* 146 */ NULL, -/* 147 */ NULL, -/* 148 */ NULL, -/* 149 */ NULL, -/* 150 */ NULL, -/* 151 */ NULL, -/* 152 */ NULL, -/* 153 */ NULL, -/* 154 */ NULL, -/* 155 */ NULL, -/* 156 */ NULL, -/* 157 */ NULL, -/* 158 */ NULL, -/* 159 */ NULL, -/* 160 */ NULL, -/* 161 */ NULL, -/* 162 */ NULL, -/* 163 */ NULL, -/* 164 */ NULL, -/* 165 */ NULL, -/* 166 */ NULL, -/* 167 */ NULL, -/* 168 */ NULL, -/* 169 */ NULL, -/* 170 */ NULL, -/* 171 */ NULL, -/* 172 */ NULL, -/* 173 */ NULL, -/* 174 */ NULL, -/* 175 */ NULL, -/* 176 */ NULL, -/* 177 */ NULL, -/* 178 */ NULL, -/* 179 */ NULL, -/* 180 */ NULL, -/* 181 */ NULL, -/* 182 */ NULL, -/* 183 */ NULL, -/* 184 */ NULL, -/* 185 */ NULL, -/* 186 */ NULL, -/* 187 */ NULL, -/* 188 */ NULL, -/* 189 */ NULL, -/* 190 */ NULL, -/* 191 */ NULL, -/* 192 */ NULL, -/* 193 */ NULL, -/* 194 */ NULL, -/* 195 */ NULL, -/* 196 */ NULL, -/* 197 */ NULL, -/* 198 */ NULL, -/* 199 */ NULL, -/* 200 RPL_TRACELINK, */ "Link %s %s %s", -/* 201 RPL_TRACECONNECTING, */ "Try. %s %s", -/* 202 RPL_TRACEHANDSHAKE, */ "H.S. %s %s", -/* 203 RPL_TRACEUNKNOWN, */ "???? %s %s (%s) %d", -/* 204 RPL_TRACEOPERATOR, */ "Oper %s %s (%s) %lu %lu", -/* 205 RPL_TRACEUSER, */ "User %s %s (%s) %lu %lu", -/* 206 RPL_TRACESERVER, */ "Serv %s %dS %dC %s %s!%s@%s %lu", -/* 207 */ NULL, -/* 208 RPL_TRACENEWTYPE, */ " 0 %s", -/* 209 RPL_TRACECLASS, */ "Class %s %d", -/* 210 */ NULL, -/* 211 RPL_STATSLINKINFO, */ NULL, -/* 212 RPL_STATSCOMMANDS, */ "%s %u %lu :%u", -/* 213 RPL_STATSCLINE, */ "C %s %s %s %d %s", -/* 214 RPL_STATSNLINE, */ NULL, -/* 215 RPL_STATSILINE, */ "I %s %s %s@%s %d %s", -/* 216 RPL_STATSKLINE, */ "%c %s * %s :%s%s%s", -/* 217 RPL_STATSQLINE, */ "%c %d %s :%s", -/* 218 RPL_STATSYLINE, */ "Y %s %d %d %d %u %d.%d %d.%d %u", -/* 219 RPL_ENDOFSTATS, */ "%c :End of /STATS report", -/* 220 RPL_STATSPLINE, */ "%c %d %s %d :%s%s", -/* 221 RPL_UMODEIS, */ "%s", -/* 222 */ NULL, -/* 223 */ NULL, -/* 224 */ NULL, -/* 225 RPL_STATSDLINE*/ "%c %s :%s%s%s", -/* 226 */ NULL, -/* 227 */ NULL, -/* 228 */ NULL, -/* 229 */ NULL, -/* 230 */ NULL, -/* 231 */ NULL, -/* 232 */ NULL, -/* 233 */ NULL, -/* 234 RPL_SERVLIST, */ NULL, -/* 235 RPL_SERVLISTEND, */ NULL, -/* 236 */ NULL, -/* 237 */ NULL, -/* 238 */ NULL, -/* 239 */ NULL, -/* 240 */ NULL, -/* 241 RPL_STATSLLINE, */ "L %s * %s 0 -1", -/* 242 RPL_STATSUPTIME,*/ ":Server Up %d days, %d:%02d:%02d", -/* 243 RPL_STATSOLINE, */ "O %s@%s * %s %s %s", -/* 244 RPL_STATSHLINE, */ "H %s * %s 0 -1", -/* 245 RPL_STATSSLINE, */ NULL, -/* 246 */ NULL, -/* 247 RPL_STATSXLINE, */ "%c %d %s :%s", - -/* 248 RPL_STATSULINE, */ "U %s %s@%s %s", -/* 249 RPL_STATSDEBUG */ NULL, -/* 250 RPL_STATSCONN, */ ":Highest connection count: %d (%d clients) (%lu connections received)", -/* 251 RPL_LUSERCLIENT, */ ":There are %d users and %d invisible on %d servers", -/* 252 RPL_LUSEROP, */ "%d :IRC Operators online", -/* 253 RPL_LUSERUNKNOWN, */ "%d :unknown connection(s)", -/* 254 RPL_LUSERCHANNELS, */ "%lu :channels formed", -/* 255 RPL_LUSERME, */ ":I have %d clients and %d servers", -/* 256 RPL_ADMINME, */ ":Administrative info about %s", -/* 257 RPL_ADMINLOC1, */ ":%s", -/* 258 RPL_ADMINLOC2, */ ":%s", -/* 259 RPL_ADMINEMAIL, */ ":%s", -/* 260 */ NULL, -/* 261 RPL_TRACELOG, */ NULL, -/* 262 RPL_ENDOFTRACE, */ "%s :End of TRACE", -/* 263 RPL_LOAD2HI, */ ":%s 263 %s %s :This command could not be completed because it has been used recently, and is rate-limited.", -/* 264 */ NULL, -/* 265 RPL_LOCALUSERS, */ "%d %d :Current local users %d, max %d", -/* 266 RPL_GLOBALUSERS, */ "%d %d :Current global users %d, max %d", -/* 267 */ NULL, -/* 268 */ NULL, -/* 269 */ NULL, -/* 270 RPL_PRIVS, */ "%s :%s", -/* 271 */ NULL, -/* 272 */ NULL, -/* 273 */ NULL, -/* 274 */ NULL, -/* 275 */ NULL, -/* 276 RPL_WHOISCERTFP */ "%s :has client certificate fingerprint %s", -/* 277 */ NULL, -/* 278 */ NULL, -/* 279 */ NULL, -/* 280 */ NULL, -/* 281 RPL_ACCEPTLIST, */ ":%s 281 %s %s", -/* 282 RPL_ENDOFACCEPT */ ":%s 282 %s :End of /ACCEPT list.", -/* 283 */ NULL, -/* 284 */ NULL, -/* 285 */ NULL, -/* 286 */ NULL, -/* 287 */ NULL, -/* 288 */ NULL, -/* 289 */ NULL, -/* 290 */ NULL, -/* 291 */ NULL, -/* 292 */ NULL, -/* 293 */ NULL, -/* 294 */ NULL, -/* 295 */ NULL, -/* 296 */ NULL, -/* 297 */ NULL, -/* 298 */ NULL, -/* 299 */ NULL, -/* 300 RPL_NONE, */ NULL, -/* 301 RPL_AWAY, */ "%s :%s", -/* 302 RPL_USERHOST, */ ":%s 302 %s :%s", -/* 303 RPL_ISON, */ ":%s 303 %s :", -/* 304 RPL_TEXT, */ NULL, -/* 305 RPL_UNAWAY, */ ":You are no longer marked as being away", -/* 306 RPL_NOWAWAY, */ ":You have been marked as being away", -/* 307 */ NULL, -/* 308 */ NULL, -/* 309 */ NULL, -/* 310 */ NULL, -/* 311 RPL_WHOISUSER, */ "%s %s %s * :%s", -/* 312 RPL_WHOISSERVER, */ "%s %s :%s", -/* 313 RPL_WHOISOPERATOR, */ "%s :%s", -/* 314 RPL_WHOWASUSER, */ ":%s 314 %s %s %s %s * :%s", -/* 315 RPL_ENDOFWHO, */ ":%s 315 %s %s :End of /WHO list.", -/* 316 RPL_WHOISCHANOP, */ NULL, -/* 317 RPL_WHOISIDLE, */ "%s %d %d :seconds idle, signon time", -/* 318 RPL_ENDOFWHOIS, */ "%s :End of /WHOIS list.", -/* 319 RPL_WHOISCHANNELS, */ ":%s 319 %s %s :", -/* 320 */ NULL, -/* 321 RPL_LISTSTART, */ ":%s 321 %s Channel :Users Name", -/* 322 RPL_LIST, */ ":%s 322 %s %s%s %lu :%s", -/* 323 RPL_LISTEND, */ ":%s 323 %s :End of /LIST", -/* 324 RPL_CHANNELMODEIS, */ ":%s 324 %s %s %s", -/* 325 RPL_CHANNELMLOCKIS, */ ":%s 325 %s %s %s :is the current channel mode-lock", -/* 326 */ NULL, -/* 327 */ NULL, -/* 328 RPL_CHANNELURL */ NULL, -/* 329 RPL_CREATIONTIME, */ ":%s 329 %s %s %lu", -/* 330 RPL_WHOISLOGGEDIN */ "%s %s :is logged in as", -/* 331 RPL_NOTOPIC, */ ":%s 331 %s %s :No topic is set.", -/* 332 RPL_TOPIC, */ ":%s 332 %s %s :%s", -/* 333 RPL_TOPICWHOTIME, */ ":%s 333 %s %s %s %lu", -/* 334 */ NULL, -/* 335 */ NULL, -/* 336 */ NULL, -/* 337 RPL_WHOISTEXT, */ "%s :%s", -/* 338 RPL_WHOISACTUALLY, */ "%s %s :actually using host", -/* 339 */ NULL, -/* 340 */ NULL, -/* 341 RPL_INVITING, */ ":%s 341 %s %s %s", -/* 342 RPL_SUMMONING, */ NULL, -/* 343 */ NULL, -/* 344 */ NULL, -/* 345 */ NULL, -/* 346 RPL_INVEXLIST */ ":%s 346 %s %s %s %s %lu", -/* 347 RPL_ENDOFINVEXLIST */ ":%s 347 %s %s :End of Channel Invite List", -/* 348 RPL_EXCEPTLIST */ ":%s 348 %s %s %s %s %lu", -/* 349 RPL_ENDOFEXCEPTLIST */ ":%s 349 %s %s :End of Channel Exception List", -/* 350 */ NULL, -#ifndef CUSTOM_BRANDING -/* 351 RPL_VERSION, */ "%s(%s). %s :%s TS%dow %s", -#else -/* 351 RPL_VERSION, */ "%s(%s, %s). %s :%s TS%dow %s", -#endif -/* 352 RPL_WHOREPLY, */ ":%s 352 %s %s %s %s %s %s %s :%d %s", -/* 353 RPL_NAMREPLY, */ ":%s 353 %s %s %s :", -/* 354 RPL_WHOSPCRPL */ NULL, -/* 355 */ NULL, -/* 356 */ NULL, -/* 357 */ NULL, -/* 358 */ NULL, -/* 359 */ NULL, -/* 360 RPL_WHOWASREAL, */ ":%s 360 %s %s :was connecting from *@%s %s", -/* 361 RPL_KILLDONE, */ NULL, -/* 362 RPL_CLOSING, */ ":%s 362 %s %s :Closed. Status = %d", -/* 363 RPL_CLOSEEND, */ ":%s 363 %s %d :Connections Closed", -/* 364 RPL_LINKS, */ "%s %s :%d %s", -/* 365 RPL_ENDOFLINKS, */ "%s :End of /LINKS list.", -/* 366 RPL_ENDOFNAMES, */ ":%s 366 %s %s :End of /NAMES list.", -/* 367 RPL_BANLIST, */ ":%s 367 %s %s %s %s %lu", -/* 368 RPL_ENDOFBANLIST, */ ":%s 368 %s %s :End of Channel Ban List", -/* 369 RPL_ENDOFWHOWAS, */ ":%s 369 %s %s :End of WHOWAS", -/* 370 */ NULL, -/* 371 RPL_INFO, */ ":%s", -/* 372 RPL_MOTD, */ ":%s 372 %s :- %s", -/* 373 RPL_INFOSTART, */ NULL, -/* 374 RPL_ENDOFINFO, */ ":End of /INFO list.", -/* 375 RPL_MOTDSTART, */ ":%s 375 %s :- %s Message of the Day - ", -/* 376 RPL_ENDOFMOTD, */ ":%s 376 %s :End of /MOTD command.", -/* 377 */ NULL, -/* 378 RPL_WHOISHOST, */ "%s :is connecting from *@%s %s", -/* 379 */ NULL, -/* 380 */ NULL, -/* 381 RPL_YOUREOPER, */ ":%s 381 %s :We would like to take this moment to remind you that we accept absolutely no liability for the insanity you're about to endure.", -/* 382 RPL_REHASHING, */ ":%s 382 %s %s :Rehashing", -/* 383 */ NULL, -/* 384 RPL_MYPORTIS, */ NULL, -/* 385 RPL_NOTOPERANYMORE, */ NULL, -/* 386 RPL_RSACHALLENGE, */ ":%s 386 %s :%s", -/* 387 */ NULL, -/* 388 */ NULL, -/* 389 */ NULL, -/* 390 */ NULL, -/* 391 RPL_TIME, */ "%s :%s", -/* 392 */ NULL, -/* 393 */ NULL, -/* 394 */ NULL, -/* 395 */ NULL, -/* 396 */ NULL, -/* 397 */ NULL, -/* 398 */ NULL, -/* 399 */ NULL, -/* 400 */ NULL, -/* 401 ERR_NOSUCHNICK, */ "%s :No such nick/channel", -/* 402 ERR_NOSUCHSERVER, */ "%s :No such server", -/* 403 ERR_NOSUCHCHANNEL, */ "%s :No such channel", -/* 404 ERR_CANNOTSENDTOCHAN, */ "%s :Cannot send to channel", -/* 405 ERR_TOOMANYCHANNELS, */ ":%s 405 %s %s :You have joined too many channels", -/* 406 ERR_WASNOSUCHNICK, */ ":%s 406 %s %s :There was no such nickname", -/* 407 ERR_TOOMANYTARGETS, */ ":%s 407 %s %s :Too many recipients.", -/* 408 */ NULL, -/* 409 ERR_NOORIGIN, */ ":%s 409 %s :No origin specified", -/* 410 ERR_INVALIDCAPCMD */ ":%s 410 %s %s :Invalid CAP subcommand", -/* 411 ERR_NORECIPIENT, */ ":%s 411 %s :No recipient given (%s)", -/* 412 ERR_NOTEXTTOSEND, */ ":%s 412 %s :No text to send", -/* 413 ERR_NOTOPLEVEL, */ "%s :No toplevel domain specified", -/* 414 ERR_WILDTOPLEVEL, */ "%s :Wildcard in toplevel Domain", -/* 415 */ NULL, -/* 416 ERR_TOOMANYMATCHES */ ":%s 416 %s %s :output too large, truncated", -/* 417 */ NULL, -/* 418 */ NULL, -/* 419 */ NULL, -/* 420 */ NULL, -/* 421 ERR_UNKNOWNCOMMAND, */ ":%s 421 %s %s :Unknown command", -/* 422 ERR_NOMOTD, */ ":%s 422 %s :MOTD File is missing", -/* 423 ERR_NOADMININFO, */ NULL, -/* 424 ERR_FILEERROR, */ NULL, -/* 425 */ NULL, -/* 426 */ NULL, -/* 427 */ NULL, -/* 428 */ NULL, -/* 429 */ NULL, -/* 430 */ NULL, -/* 431 ERR_NONICKNAMEGIVEN, */ ":%s 431 %s :No nickname given", -/* 432 ERR_ERRONEUSNICKNAME, */ ":%s 432 %s %s :Erroneous Nickname", -/* 433 ERR_NICKNAMEINUSE, */ ":%s 433 %s %s :Nickname is already in use.", -/* 434 */ NULL, -/* 435 ERR_BANNICKCHANGE */ "%s %s :Cannot change nickname while banned on channel", -/* 436 ERR_NICKCOLLISION, */ "%s :Nickname collision KILL", -/* 437 ERR_UNAVAILRESOURCE, */ ":%s 437 %s %s :Nick/channel is temporarily unavailable", -/* 438 ERR_NICKTOOFAST */ ":%s 438 %s %s %s :Nick change too fast. Please wait %d seconds.", -/* 439 */ NULL, -/* 440 ERR_SERVICESDOWN, */ "%s :Services are currently unavailable", -/* 441 ERR_USERNOTINCHANNEL, */ "%s %s :They aren't on that channel", -/* 442 ERR_NOTONCHANNEL, */ "%s :You're not on that channel", -/* 443 ERR_USERONCHANNEL, */ "%s %s :is already on channel", -/* 444 ERR_NOLOGIN, */ NULL, -/* 445 ERR_SUMMONDISABLED, */ NULL, -/* 446 ERR_USERSDISABLED, */ NULL, -/* 447 */ NULL, -/* 448 */ NULL, -/* 449 */ NULL, -/* 450 */ NULL, -/* 451 ERR_NOTREGISTERED, */ ":%s 451 * :You have not registered", -/* 452 */ NULL, -/* 453 */ NULL, -/* 454 */ NULL, -/* 455 */ NULL, -/* 456 ERR_ACCEPTFULL */ ":%s 456 %s :Accept list is full", -/* 457 ERR_ACCEPTEXIST */ ":%s 457 %s %s :is already on your accept list", -/* 458 ERR_ACCEPTNOT */ ":%s 458 %s %s :is not on your accept list", -/* 459 */ NULL, -/* 460 */ NULL, -/* 461 ERR_NEEDMOREPARAMS, */ ":%s 461 %s %s :Not enough parameters", -/* 462 ERR_ALREADYREGISTRED, */ ":%s 462 %s :You may not reregister", -/* 463 ERR_NOPERMFORHOST, */ NULL, -/* 464 ERR_PASSWDMISMATCH, */ ":%s 464 %s :Password Incorrect", -/* 465 ERR_YOUREBANNEDCREEP, */ ":%s 465 %s :You are banned from this server- %s", -/* 466 ERR_YOUWILLBEBANNED, */ NULL, -/* 467 ERR_KEYSET, */ NULL, -/* 468 */ NULL, -/* 469 */ NULL, -/* 470 ERR_LINKCHANNEL */ "%s %s :Forwarding to another channel", -/* 471 ERR_CHANNELISFULL, */ ":%s 471 %s %s :Cannot join channel (+l) - channel is full, try again later", -/* 472 ERR_UNKNOWNMODE , */ ":%s 472 %s %c :is an unknown mode char to me", -/* 473 ERR_INVITEONLYCHAN, */ ":%s 473 %s %s :Cannot join channel (+i) - you must be invited", -/* 474 ERR_BANNEDFROMCHAN, */ ":%s 474 %s %s :Cannot join channel (+b) - you are banned", -/* 475 ERR_BADCHANNELKEY, */ ":%s 475 %s %s :Cannot join channel (+k) - bad key", -/* 476 ERR_BADCHANMASK, */ NULL, -/* 477 ERR_NEEDREGGEDNICK */ ":%s 477 %s %s :Cannot join channel (+r) - you need to be identified with services", -/* 478 ERR_BANLISTFULL, */ ":%s 478 %s %s %s :Channel ban list is full", -/* 479 ERR_BADCHANNAME */ "%s :Illegal channel name", -/* 480 ERR_THROTTLE */ ":%s 480 %s %s :Cannot join channel (+j) - throttle exceeded, try again later", -/* 481 ERR_NOPRIVILEGES, */ ":Permission Denied - You're not an IRC operator", -/* 482 ERR_CHANOPRIVSNEEDED, */ ":%s 482 %s %s :You're not a channel operator", -/* 483 ERR_CANTKILLSERVER, */ ":You can't kill a server!", -/* 484 ERR_ISCHANSERVICE */ ":%s 484 %s %s %s :Cannot kick or deop a network service", -/* 485 ERR_BANNEDNICK, */ NULL, -/* 486 ERR_NONONREG */ "%s :You must log in with services to message this user", -/* 487 */ NULL, -/* 488 */ NULL, -/* 489 ERR_VOICENEEDED */ ":%s 489 %s %s :You're neither voiced nor channel operator", -/* 490 */ NULL, -/* 491 ERR_NOOPERHOST, */ ":No appropriate operator blocks were found for your host", -/* 492 */ NULL, -/* 493 */ NULL, -/* 494 ERR_OWNMODE, */ "%s :cannot answer you while you are %s, your message was not sent", -/* 495 */ NULL, -/* 496 */ NULL, -/* 497 */ NULL, -/* 498 */ NULL, -/* 499 */ NULL, -/* 500 */ NULL, -/* 501 ERR_UMODEUNKNOWNFLAG, */ ":%s 501 %s :Unknown MODE flag", -/* 502 ERR_USERSDONTMATCH, */ ":%s 502 %s :Can't change mode for other users", -/* 503 ERR_GHOSTEDCLIENT, */ NULL, -/* 504 ERR_USERNOTONSERV, */ ":%s 504 %s %s :User is not on this server", -/* 505 */ NULL, -/* 506 */ NULL, -/* 507 */ NULL, -/* 508 */ NULL, -/* 509 */ NULL, -/* 510 */ NULL, -/* 511 */ NULL, -/* 512 */ NULL, -/* 513 ERR_WRONGPONG */ ":%s 513 %s :To connect type /QUOTE PONG %08lX", -/* 514 */ NULL, -/* 515 */ NULL, -/* 516 */ NULL, -/* 517 ERR_DISABLED */ "%s :This command has been administratively disabled", -/* 518 */ NULL, -/* 519 */ NULL, -/* 520 */ NULL, -/* 521 */ NULL, -/* 522 */ NULL, -/* 523 */ NULL, -/* 524 ERR_HELPNOTFOUND, */ ":%s 524 %s %s :Help not found", -/* 525 */ NULL, -/* 526 */ NULL, -/* 527 */ NULL, -/* 528 */ NULL, -/* 529 */ NULL, -/* 530 */ NULL, -/* 531 */ NULL, -/* 532 */ NULL, -/* 533 */ NULL, -/* 534 */ NULL, -/* 535 */ NULL, -/* 536 */ NULL, -/* 537 */ NULL, -/* 538 */ NULL, -/* 539 */ NULL, -/* 540 */ NULL, -/* 541 */ NULL, -/* 542 */ NULL, -/* 543 */ NULL, -/* 544 */ NULL, -/* 545 */ NULL, -/* 546 */ NULL, -/* 547 */ NULL, -/* 548 */ NULL, -/* 549 */ NULL, -/* 550 */ NULL, -/* 551 */ NULL, -/* 552 */ NULL, -/* 553 */ NULL, -/* 554 */ NULL, -/* 555 */ NULL, -/* 556 */ NULL, -/* 557 */ NULL, -/* 558 */ NULL, -/* 559 */ NULL, -/* 560 */ NULL, -/* 561 */ NULL, -/* 562 */ NULL, -/* 563 */ NULL, -/* 564 */ NULL, -/* 565 */ NULL, -/* 566 */ NULL, -/* 567 */ NULL, -/* 568 */ NULL, -/* 569 */ NULL, -/* 570 */ NULL, -/* 571 */ NULL, -/* 572 */ NULL, -/* 573 */ NULL, -/* 574 */ NULL, -/* 575 */ NULL, -/* 576 */ NULL, -/* 577 */ NULL, -/* 578 */ NULL, -/* 579 */ NULL, -/* 580 */ NULL, -/* 581 */ NULL, -/* 582 */ NULL, -/* 583 */ NULL, -/* 584 */ NULL, -/* 585 */ NULL, -/* 586 */ NULL, -/* 587 */ NULL, -/* 588 */ NULL, -/* 589 */ NULL, -/* 590 */ NULL, -/* 591 */ NULL, -/* 592 */ NULL, -/* 593 */ NULL, -/* 594 */ NULL, -/* 595 */ NULL, -/* 596 */ NULL, -/* 597 */ NULL, -/* 598 */ NULL, -/* 599 */ NULL, -/* 600 */ NULL, -/* 601 */ NULL, -/* 602 */ NULL, -/* 603 */ NULL, -/* 604 */ NULL, -/* 605 */ NULL, -/* 606 */ NULL, -/* 607 */ NULL, -/* 608 */ NULL, /* Do not use -- Reserved for WATCH -Rak */ -/* 609 */ NULL, -/* 610 */ NULL, -/* 611 */ NULL, -/* 612 */ NULL, -/* 613 */ NULL, -/* 614 */ NULL, -/* 615 */ NULL, -/* 616 */ NULL, -/* 617 */ NULL, -/* 618 */ NULL, -/* 619 */ NULL, -/* 620 */ NULL, -/* 621 */ NULL, -/* 622 */ NULL, -/* 623 */ NULL, -/* 624 */ NULL, -/* 625 */ NULL, -/* 626 */ NULL, -/* 627 */ NULL, -/* 628 */ NULL, -/* 629 */ NULL, -/* 630 */ NULL, -/* 631 */ NULL, -/* 632 */ NULL, -/* 633 */ NULL, -/* 634 */ NULL, -/* 635 */ NULL, -/* 636 */ NULL, -/* 637 */ NULL, -/* 638 */ NULL, -/* 639 */ NULL, -/* 640 */ NULL, -/* 641 */ NULL, -/* 642 */ NULL, -/* 643 */ NULL, -/* 644 */ NULL, -/* 645 */ NULL, -/* 646 */ NULL, -/* 647 */ NULL, -/* 648 */ NULL, -/* 649 */ NULL, -/* 650 */ NULL, -/* 651 */ NULL, -/* 652 */ NULL, -/* 653 */ NULL, -/* 654 */ NULL, -/* 655 */ NULL, -/* 656 */ NULL, -/* 657 */ NULL, -/* 658 */ NULL, -/* 659 */ NULL, -/* 660 */ NULL, -/* 661 */ NULL, -/* 662 */ NULL, -/* 663 */ NULL, -/* 664 */ NULL, -/* 665 */ NULL, -/* 666 */ NULL, -/* 667 */ NULL, -/* 668 */ NULL, -/* 669 */ NULL, -/* 670 RPL_STARTTLS, */ ":STARTTLS successful, proceed with TLS handshake", -/* 671 RPL_WHOISSECURE, */ "%s :is using a secure connection", -/* 672 */ NULL, -/* 673 */ NULL, -/* 674 */ NULL, -/* 675 */ NULL, -/* 676 */ NULL, -/* 677 */ NULL, -/* 678 */ NULL, -/* 679 */ NULL, -/* 680 */ NULL, -/* 681 */ NULL, -/* 682 */ NULL, -/* 683 */ NULL, -/* 684 */ NULL, -/* 685 */ NULL, -/* 686 */ NULL, -/* 687 */ NULL, -/* 688 */ NULL, -/* 689 */ NULL, -/* 690 */ NULL, -/* 691 ERR_STARTTLS */ ":%s", -/* 692 */ NULL, -/* 693 */ NULL, -/* 694 */ NULL, -/* 695 */ NULL, -/* 696 */ NULL, -/* 697 */ NULL, -/* 698 */ NULL, -/* 699 */ NULL, -/* 700 */ NULL, -/* 701 */ NULL, -/* 702 RPL_MODLIST, */ ":%s 702 %s %s 0x%x %s %s", -/* 703 RPL_ENDOFMODLIST, */ ":%s 703 %s :End of /MODLIST.", -/* 704 RPL_HELPSTART, */ ":%s 704 %s %s :%s", -/* 705 RPL_HELPTXT, */ ":%s 705 %s %s :%s", -/* 706 RPL_ENDOFHELP, */ ":%s 706 %s %s :End of /HELP.", -/* 707 ERR_TARGCHANGE */ ":%s 707 %s %s :Targets changing too fast, message dropped", -/* 708 RPL_ETRACEFULL */ ":%s 708 %s %s %s %s %s %s %s %s :%s", -/* 709 RPL_ETRACE */ ":%s 709 %s %s %s %s %s %s %s :%s", -/* 710 RPL_KNOCK */ ":%s 710 %s %s %s!%s@%s :has asked for an invite.", -/* 711 RPL_KNOCKDLVR */ ":%s 711 %s %s :Your KNOCK has been delivered.", -/* 712 ERR_TOOMANYKNOCK */ ":%s 712 %s %s :Too many KNOCKs (%s).", -/* 713 ERR_CHANOPEN */ "%s :Channel is open.", -/* 714 ERR_KNOCKONCHAN */ ":%s 714 %s %s :You are already on that channel.", -/* 715 ERR_KNOCKDISABLED */ ":%s 715 %s :KNOCKs are disabled.", -/* 716 ERR_TARGUMODEG */ "%s :is in +g mode (server-side ignore.)", -/* 717 RPL_TARGNOTIFY */ "%s :has been informed that you messaged them.", -/* 718 RPL_UMODEGMSG */ ":%s 718 %s %s %s@%s :is messaging you, and you have umode +g.", -/* 719 */ NULL, -/* 720 RPL_OMOTDSTART */ ":%s 720 %s :Start of OPER MOTD", -/* 721 RPL_OMOTD */ ":%s 721 %s :%s", -/* 722 RPL_ENDOFOMOTD */ ":%s 722 %s :End of OPER MOTD", -/* 723 ERR_NOPRIVS */ ":%s 723 %s %s :Insufficient oper privs", -/* 724 RPL_TESTMASK */ NULL, /* Used in 1.x and 2.0.x */ -/* 725 RPL_TESTLINE */ ":%s 725 %s %c %ld %s :%s", -/* 726 RPL_NOTESTLINE */ ":%s 726 %s %s :No matches", -/* 727 RPL_TESTMASKGECOS */ ":%s 727 %s %d %d %s!%s@%s %s :Local/remote clients match", -/* 728 RPL_QUIETLIST */ ":%s 728 %s %s q %s %s %lu", -/* 729 RPL_ENDOFQUIETLIST */ ":%s 729 %s %s q :End of Channel Quiet List", -/* 730 RPL_MONONLINE */ ":%s 730 %s :%s", -/* 731 RPL_MONOFFLINE */ ":%s 731 %s :%s", -/* 732 RPL_MONLIST */ ":%s 732 %s :%s", -/* 733 RPL_ENDOFMONLIST */ ":%s 733 %s :End of MONITOR list", -/* 734 ERR_MONLISTFULL */ ":%s 734 %s %d %s :Monitor list is full", -/* 735 */ NULL, -/* 736 */ NULL, -/* 737 */ NULL, -/* 738 */ NULL, -/* 739 */ NULL, -/* 740 RPL_RSACHALLENGE2*/ ":%s 740 %s :%s", -/* 741 RPL_ENDOFRSACHALLENGE2*/ ":%s 741 %s :End of CHALLENGE", -/* 742 ERR_MLOCKRESTRICTED */ "%s %c %s :MODE cannot be set due to channel having an active MLOCK restriction policy", -/* 743 ERR_INVALIDBAN */ "%s %c %s :Invalid ban mask", -/* 744 */ NULL, -/* 745 */ NULL, -/* 746 */ NULL, -/* 747 */ NULL, -/* 748 */ NULL, -/* 749 */ NULL, -/* 750 RPL_SCANMATCHED */ "%d :matches", -/* 751 RPL_SCANUMODES */ "%s %s %s %s %s %s :%s", -/* 752 */ NULL, -/* 753 */ NULL, -/* 754 */ NULL, -/* 755 */ NULL, -/* 756 */ NULL, -/* 757 */ NULL, -/* 758 */ NULL, -/* 759 */ NULL, -/* 760 */ NULL, -/* 761 */ NULL, -/* 762 */ NULL, -/* 763 */ NULL, -/* 764 */ NULL, -/* 765 */ NULL, -/* 766 */ NULL, -/* 767 */ NULL, -/* 768 */ NULL, -/* 769 */ NULL, -/* 770 */ NULL, -/* 771 */ NULL, -/* 772 */ NULL, -/* 773 */ NULL, -/* 774 */ NULL, -/* 775 */ NULL, -/* 776 */ NULL, -/* 777 */ NULL, -/* 778 */ NULL, -/* 779 */ NULL, -/* 780 */ NULL, -/* 781 */ NULL, -/* 782 */ NULL, -/* 783 */ NULL, -/* 784 */ NULL, -/* 785 */ NULL, -/* 786 */ NULL, -/* 787 */ NULL, -/* 788 */ NULL, -/* 789 */ NULL, -/* 790 */ NULL, -/* 791 */ NULL, -/* 792 */ NULL, -/* 793 */ NULL, -/* 794 */ NULL, -/* 795 */ NULL, -/* 796 */ NULL, -/* 797 */ NULL, -/* 798 */ NULL, -/* 799 */ NULL, -/* 800 */ NULL, -/* 801 */ NULL, -/* 802 */ NULL, -/* 803 */ NULL, -/* 804 */ NULL, -/* 805 */ NULL, -/* 806 */ NULL, -/* 807 */ NULL, -/* 808 */ NULL, -/* 809 */ NULL, -/* 810 */ NULL, -/* 811 */ NULL, -/* 812 */ NULL, -/* 813 */ NULL, -/* 814 */ NULL, -/* 815 */ NULL, -/* 816 */ NULL, -/* 817 */ NULL, -/* 818 */ NULL, -/* 819 */ NULL, -/* 820 */ NULL, -/* 821 */ NULL, -/* 822 */ NULL, -/* 823 */ NULL, -/* 824 */ NULL, -/* 825 */ NULL, -/* 826 */ NULL, -/* 827 */ NULL, -/* 828 */ NULL, -/* 829 */ NULL, -/* 830 */ NULL, -/* 831 */ NULL, -/* 832 */ NULL, -/* 833 */ NULL, -/* 834 */ NULL, -/* 835 */ NULL, -/* 836 */ NULL, -/* 837 */ NULL, -/* 838 */ NULL, -/* 839 */ NULL, -/* 840 */ NULL, -/* 841 */ NULL, -/* 842 */ NULL, -/* 843 */ NULL, -/* 844 */ NULL, -/* 845 */ NULL, -/* 846 */ NULL, -/* 847 */ NULL, -/* 848 */ NULL, -/* 849 */ NULL, -/* 850 */ NULL, -/* 851 */ NULL, -/* 852 */ NULL, -/* 853 */ NULL, -/* 854 */ NULL, -/* 855 */ NULL, -/* 856 */ NULL, -/* 857 */ NULL, -/* 858 */ NULL, -/* 859 */ NULL, -/* 860 */ NULL, -/* 861 */ NULL, -/* 862 */ NULL, -/* 863 */ NULL, -/* 864 */ NULL, -/* 865 */ NULL, -/* 866 */ NULL, -/* 867 */ NULL, -/* 868 */ NULL, -/* 869 */ NULL, -/* 870 */ NULL, -/* 871 */ NULL, -/* 872 */ NULL, -/* 873 */ NULL, -/* 874 */ NULL, -/* 875 */ NULL, -/* 876 */ NULL, -/* 877 */ NULL, -/* 878 */ NULL, -/* 879 */ NULL, -/* 880 */ NULL, -/* 881 */ NULL, -/* 882 */ NULL, -/* 883 */ NULL, -/* 884 */ NULL, -/* 885 */ NULL, -/* 886 */ NULL, -/* 887 */ NULL, -/* 888 */ NULL, -/* 889 */ NULL, -/* 890 */ NULL, -/* 891 */ NULL, -/* 892 */ NULL, -/* 893 */ NULL, -/* 894 */ NULL, -/* 895 */ NULL, -/* 896 */ NULL, -/* 897 */ NULL, -/* 898 */ NULL, -/* 899 */ NULL, -/* 900 RPL_LOGGEDIN */ ":%s 900 %s %s!%s@%s %s :You are now logged in as %s.", -/* 901 RPL_LOGGEDOUT */ ":%s 901 %s %s!%s@%s :You are now logged out.", -/* 902 ERR_NICKLOCKED */ ":%s 902 %s :You must use a nick assigned to you.", -/* 903 RPL_SASLSUCCESS */ ":%s 903 %s :SASL authentication successful", -/* 904 ERR_SASLFAIL */ ":%s 904 %s :SASL authentication failed", -/* 905 ERR_SASLTOOLONG */ ":%s 905 %s :SASL message too long", -/* 906 ERR_SASLABORTED */ ":%s 906 %s :SASL authentication aborted", -/* 907 ERR_SASLALREADY */ ":%s 907 %s :You have already completed SASL authentication", -/* 908 RPL_SASLMECHS */ ":%s 908 %s %s :are available SASL mechanisms", -/* 909 */ NULL, -/* 910 */ NULL, -/* 911 */ NULL, -/* 912 */ NULL, -/* 913 */ NULL, -/* 914 */ NULL, -/* 915 */ NULL, -/* 916 */ NULL, -/* 917 */ NULL, -/* 918 */ NULL, -/* 919 */ NULL, -/* 920 */ NULL, -/* 921 */ NULL, -/* 922 */ NULL, -/* 923 */ NULL, -/* 924 */ NULL, -/* 925 */ NULL, -/* 926 */ NULL, -/* 927 */ NULL, -/* 928 */ NULL, -/* 929 */ NULL, -/* 930 */ NULL, -/* 931 */ NULL, -/* 932 */ NULL, -/* 933 */ NULL, -/* 934 */ NULL, -/* 935 */ NULL, -/* 936 */ NULL, -/* 937 */ NULL, -/* 938 */ NULL, -/* 939 */ NULL, -/* 940 */ NULL, -/* 941 */ NULL, -/* 942 */ NULL, -/* 943 */ NULL, -/* 944 */ NULL, -/* 945 */ NULL, -/* 946 */ NULL, -/* 947 */ NULL, -/* 948 */ NULL, -/* 949 */ NULL, -/* 950 */ NULL, -/* 951 */ NULL, -/* 952 */ NULL, -/* 953 */ NULL, -/* 954 */ NULL, -/* 955 */ NULL, -/* 956 */ NULL, -/* 957 */ NULL, -/* 958 */ NULL, -/* 959 */ NULL, -/* 960 */ NULL, -/* 961 */ NULL, -/* 962 */ NULL, -/* 963 */ NULL, -/* 964 */ NULL, -/* 965 */ NULL, -/* 966 */ NULL, -/* 967 */ NULL, -/* 968 */ NULL, -/* 969 */ NULL, -/* 970 */ NULL, -/* 971 */ NULL, -/* 972 */ NULL, -/* 973 */ NULL, -/* 974 */ NULL, -/* 975 */ NULL, -/* 976 */ NULL, -/* 977 */ NULL, -/* 978 */ NULL, -/* 979 */ NULL, -/* 980 */ NULL, -/* 981 */ NULL, -/* 982 */ NULL, -/* 983 */ NULL, -/* 984 */ NULL, -/* 985 */ NULL, -/* 986 */ NULL, -/* 987 */ NULL, -/* 988 */ NULL, -/* 989 */ NULL, -/* 990 */ NULL, -/* 991 */ NULL, -/* 992 */ NULL, -/* 993 */ NULL, -/* 994 */ NULL, -/* 995 */ NULL, -/* 996 */ NULL, -/* 997 */ NULL, -/* 998 */ NULL, -/* 999 LAST ERR_LAST_ERR_MSG,*/ ":%s 999 %s :Last Error Message" -}; diff --git a/src/numeric.c b/src/numeric.c deleted file mode 100644 index 71b970d6..00000000 --- a/src/numeric.c +++ /dev/null @@ -1,63 +0,0 @@ -/* - * ircd-ratbox: A slightly useful ircd. - * numeric.c: Numeric handling functions. - * - * Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center - * Copyright (C) 1996-2002 Hybrid Development Team - * Copyright (C) 2002-2005 ircd-ratbox development team - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 - * USA - * - * $Id: numeric.c 6 2005-09-10 01:02:21Z nenolod $ - */ - -#include "stdinc.h" -#include "setup.h" -#include "config.h" -#include "s_conf.h" -#include "numeric.h" -#include "match.h" -#include "common.h" /* NULL cripes */ - -#include "messages.tab" - -/* - * form_str - * - * inputs - numeric - * output - corresponding string - * side effects - NONE - */ -const char * -form_str(int numeric) -{ - const char *num_ptr; - - s_assert(-1 < numeric); - s_assert(numeric < ERR_LAST_ERR_MSG); - s_assert(0 != replies[numeric]); - - if(numeric > ERR_LAST_ERR_MSG) - numeric = ERR_LAST_ERR_MSG; - if(numeric < 0) - numeric = ERR_LAST_ERR_MSG; - - num_ptr = replies[numeric]; - if(num_ptr == NULL) - num_ptr = replies[ERR_LAST_ERR_MSG]; - - return (num_ptr); -}