ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/numeric.h
Revision: 1832
Committed: Fri Apr 19 19:16:09 2013 UTC (13 years, 3 months ago) by michael
Content type: text/x-chdr
File size: 15343 byte(s)
Log Message:
- Made all numeric defines use the actual string instead of the numeric value
  which allows to use gcc's printf format attribute
- Remove current message locale implementation

File Contents

# User Rev Content
1 adx 30 /*
2     * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3     * numeric.h: A header for the numeric functions.
4     *
5     * Copyright (C) 2002 by the past and present ircd coders, and others.
6     *
7     * This program is free software; you can redistribute it and/or modify
8     * it under the terms of the GNU General Public License as published by
9     * the Free Software Foundation; either version 2 of the License, or
10     * (at your option) any later version.
11     *
12     * This program is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with this program; if not, write to the Free Software
19     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20     * USA
21     *
22 knight 31 * $Id$
23 adx 30 */
24    
25     #ifndef INCLUDED_numeric_h
26     #define INCLUDED_numeric_h
27    
28     /*
29     * Reserve numerics 000-099 for server-client connections where the client
30     * is local to the server. If any server is passed a numeric in this range
31     * from another server then it is remapped to 100-199. -avalon
32     */
33 michael 1832 #define RPL_WELCOME ":%s 001 %s :Welcome to the %s Internet Relay Chat Network %s"
34     #define RPL_YOURHOST ":%s 002 %s :Your host is %s, running version %s"
35     #define RPL_CREATED ":%s 003 %s :This server was created %s"
36     #ifdef HALFOPS
37     #define RPL_MYINFO ":%s 004 %s %s %s %s biklmnoprstveIhORS bkloveIh"
38     #else
39     #define RPL_MYINFO ":%s 004 %s %s %s %s biklmnoprstveIORS bkloveI"
40     #endif
41     #define RPL_ISUPPORT ":%s 005 %s %s :are supported by this server"
42     #define RPL_REDIR ":%s 010 %s %s %d :Please use this Server/Port instead"
43     #define RPL_MAP ":%s 015 %s :%s"
44     #define RPL_MAPEND ":%s 017 %s :End of /MAP"
45     #define RPL_YOURID ":%s 042 %s %s :your unique ID"
46 adx 30
47     /*
48     * Numeric replies from server commands.
49     * These are currently in the range 200-399.
50     */
51 michael 1832 #define RPL_TRACELINK ":%s 200 %s Link %s %s %s"
52     #define RPL_TRACECONNECTING ":%s 201 %s Try. %s %s"
53     #define RPL_TRACEHANDSHAKE ":%s 202 %s H.S. %s %s"
54     #define RPL_TRACEUNKNOWN ":%s 203 %s ???? %s %s (%s) %d"
55     #define RPL_TRACEOPERATOR ":%s 204 %s Oper %s %s (%s) %lu %lu"
56     #define RPL_TRACEUSER ":%s 205 %s User %s %s (%s) %lu %lu"
57     #define RPL_TRACESERVER ":%s 206 %s Serv %s %dS %dC %s %s!%s@%s %lu"
58     #define RPL_TRACENEWTYPE ":%s 208 %s <newtype> 0 %s"
59     #define RPL_TRACECLASS ":%s 209 %s Class %s %d"
60     #define RPL_STATSLINKINFO ":%s 211 %s %s %u %u %llu %u %llu :%u %u %s"
61     #define RPL_STATSCOMMANDS ":%s 212 %s %s %u %llu :%u"
62     #define RPL_STATSCLINE ":%s 213 %s %c %s %s %s %d %s"
63     #define RPL_STATSNLINE ":%s 214 %s %c %s * %s %d %s"
64     #define RPL_STATSILINE ":%s 215 %s %c %s * %s@%s %d %s"
65     #define RPL_STATSKLINE ":%s 216 %s %s %s * %s :%s"
66     #define RPL_STATSQLINE ":%s 217 %s %c %u %s :%s"
67     #define RPL_STATSYLINE ":%s 218 %s %c %s %u %u %u %u %u %u %u/%u %u/%u %s"
68     #define RPL_ENDOFSTATS ":%s 219 %s %c :End of /STATS report"
69 adx 30
70 michael 1832 /*
71     * note ircu uses 217 for STATSPLINE frip. conflict
72 adx 30 * as RPL_STATSQLINE was used in old 2.8 for Q line
73     * I'm going to steal 220 for now *sigh*
74     * -Dianora
75     */
76 michael 1832 #define RPL_STATSPLINE ":%s 220 %s %c %d %s %d %s :%s"
77     #define RPL_UMODEIS ":%s 221 %s %s"
78     #define RPL_STATSDLINE ":%s 225 %s %c %s :%s"
79     #define RPL_STATSALINE ":%s 226 %s %s"
80     #define RPL_STATSLLINE ":%s 241 %s %c %s * %s %d %s"
81     #define RPL_STATSUPTIME ":%s 242 %s :Server Up %d days, %d:%02d:%02d"
82     #define RPL_STATSOLINE ":%s 243 %s %c %s@%s * %s %s %s"
83     #define RPL_STATSHLINE ":%s 244 %s %c %s * %s %d %s"
84     #define RPL_STATSSERVICE ":%s 246 %s %c %s * %s %d %d"
85     #define RPL_STATSXLINE ":%s 247 %s %s %d %s :%s"
86     #define RPL_STATSULINE ":%s 248 %s U %s %s@%s %s"
87     #define RPL_STATSCONN ":%s 250 %s :Highest connection count: %d (%d clients) (%llu connections received)"
88     #define RPL_LUSERCLIENT ":%s 251 %s :There are %d users and %d invisible on %d servers"
89     #define RPL_LUSEROP ":%s 252 %s %d :IRC Operators online"
90     #define RPL_LUSERUNKNOWN ":%s 253 %s %d :unknown connection(s)"
91     #define RPL_LUSERCHANNELS ":%s 254 %s %d :channels formed"
92     #define RPL_LUSERME ":%s 255 %s :I have %d clients and %d servers"
93     #define RPL_ADMINME ":%s 256 %s :Administrative info about %s"
94     #define RPL_ADMINLOC1 ":%s 257 %s :%s"
95     #define RPL_ADMINLOC2 ":%s 258 %s :%s"
96     #define RPL_ADMINEMAIL ":%s 259 %s :%s"
97     #define RPL_ENDOFTRACE ":%s 262 %s %s :End of TRACE"
98     #define RPL_LOAD2HI ":%s 263 %s :Server load is temporarily too heavy. Please wait a while and try again."
99     #define RPL_LOCALUSERS ":%s 265 %s :Current local users: %d Max: %d"
100     #define RPL_GLOBALUSERS ":%s 266 %s :Current global users: %d Max: %d"
101     #define RPL_ACCEPTLIST ":%s 281 %s :%s"
102     #define RPL_ENDOFACCEPT ":%s 282 %s :End of /ACCEPT list."
103     #define RPL_AWAY ":%s 301 %s %s :%s"
104     #define RPL_USERHOST ":%s 302 %s :%s"
105     #define RPL_ISON ":%s 303 %s :"
106     #define RPL_UNAWAY ":%s 305 %s :You are no longer marked as being away"
107     #define RPL_NOWAWAY ":%s 306 %s :You have been marked as being away"
108     #define RPL_WHOISREGNICK ":%s 307 %s %s :has identified for this nick"
109     #define RPL_WHOISADMIN ":%s 313 %s %s :is a Server Administrator"
110     #define RPL_WHOISUSER ":%s 311 %s %s %s %s * :%s"
111     #define RPL_WHOISSERVER ":%s 312 %s %s %s :%s"
112     #define RPL_WHOISOPERATOR ":%s 313 %s %s :is an IRC Operator"
113     #define RPL_WHOWASUSER ":%s 314 %s %s %s %s * :%s"
114     #define RPL_ENDOFWHO ":%s 315 %s %s :End of /WHO list."
115     #define RPL_WHOISIDLE ":%s 317 %s %s %u %d :seconds idle, signon time"
116     #define RPL_ENDOFWHOIS ":%s 318 %s %s :End of /WHOIS list."
117     #define RPL_WHOISCHANNELS ":%s 319 %s %s :%s"
118     #define RPL_LISTSTART ":%s 321 %s Channel :Users Name"
119     #define RPL_LIST ":%s 322 %s %s %d :%s"
120     #define RPL_LISTEND ":%s 323 %s :End of /LIST"
121     #define RPL_CHANNELMODEIS ":%s 324 %s %s %s %s"
122     #define RPL_CREATIONTIME ":%s 329 %s %s %lu"
123     #define RPL_NOTOPIC ":%s 331 %s %s :No topic is set."
124     #define RPL_TOPIC ":%s 332 %s %s :%s"
125     #define RPL_TOPICWHOTIME ":%s 333 %s %s %s %lu"
126     #define RPL_WHOISACTUALLY ":%s 338 %s %s %s :actually using host"
127     #define RPL_INVITING ":%s 341 %s %s %s"
128     #define RPL_INVITELIST ":%s 346 %s %s %s!%s@%s %s %lu"
129     #define RPL_ENDOFINVITELIST ":%s 347 %s %s :End of Channel Invite List"
130     #define RPL_EXCEPTLIST ":%s 348 %s %s %s!%s@%s %s %lu"
131     #define RPL_ENDOFEXCEPTLIST ":%s 349 %s %s :End of Channel Exception List"
132     #define RPL_VERSION ":%s 351 %s %s(%s). %s :%s%s"
133     #define RPL_WHOREPLY ":%s 352 %s %s %s %s %s %s %s :%d %s"
134     #define RPL_NAMREPLY ":%s 353 %s %s %s :"
135     #define RPL_CLOSING ":%s 362 %s %s :Closed. Status = %d"
136     #define RPL_CLOSEEND ":%s 363 %s %d: Connections Closed"
137     #define RPL_LINKS ":%s 364 %s %s %s :%d %s"
138     #define RPL_ENDOFLINKS ":%s 365 %s %s :End of /LINKS list."
139     #define RPL_ENDOFNAMES ":%s 366 %s %s :End of /NAMES list."
140     #define RPL_BANLIST ":%s 367 %s %s %s!%s@%s %s %lu"
141     #define RPL_ENDOFBANLIST ":%s 368 %s %s :End of Channel Ban List"
142     #define RPL_ENDOFWHOWAS ":%s 369 %s %s :End of WHOWAS"
143     #define RPL_INFO ":%s 371 %s :%s"
144     #define RPL_MOTD ":%s 372 %s :- %s"
145     #define RPL_INFOSTART ":%s 373 %s :Server INFO"
146     #define RPL_ENDOFINFO ":%s 374 %s :End of /INFO list."
147     #define RPL_MOTDSTART ":%s 375 %s :- %s Message of the Day - "
148     #define RPL_ENDOFMOTD ":%s 376 %s :End of /MOTD command."
149     #define RPL_YOUREOPER ":%s 381 %s :You have entered... the Twilight Zone!"
150     #define RPL_REHASHING ":%s 382 %s %s :Rehashing"
151     #define RPL_TIME ":%s 391 %s %s :%s"
152     #define RPL_HOSTHIDDEN ":%s 396 %s %s :is now your hidden host"
153 adx 30
154     /*
155     * Errors are in the range from 400-599 currently and are grouped by what
156     * commands they come from.
157     */
158 michael 1832 #define ERR_NOSUCHNICK ":%s 401 %s %s :No such nick/channel"
159     #define ERR_NOSUCHSERVER ":%s 402 %s %s :No such server"
160     #define ERR_NOSUCHCHANNEL ":%s 403 %s %s :No such channel"
161     #define ERR_CANNOTSENDTOCHAN ":%s 404 %s %s :Cannot send to channel"
162     #define ERR_TOOMANYCHANNELS ":%s 405 %s %s :You have joined too many channels"
163     #define ERR_WASNOSUCHNICK ":%s 406 %s %s :There was no such nickname"
164     #define ERR_TOOMANYTARGETS ":%s 407 %s %s :Too many recipients. Only %d processed"
165     #define ERR_NOORIGIN ":%s 409 %s :No origin specified"
166     #define ERR_INVALIDCAPCMD ":%s 410 %s %s :Invalid CAP subcommand"
167     #define ERR_NORECIPIENT ":%s 411 %s :No recipient given (%s)"
168     #define ERR_NOTEXTTOSEND ":%s 412 %s :No text to send"
169     #define ERR_NOTOPLEVEL ":%s 413 %s %s :No toplevel domain specified"
170     #define ERR_WILDTOPLEVEL ":%s 414 %s %s :Wildcard in toplevel Domain"
171     #define ERR_UNKNOWNCOMMAND ":%s 421 %s %s :Unknown command"
172     #define ERR_NOMOTD ":%s 422 %s :MOTD File is missing"
173     #define ERR_NOADMININFO ":%s 423 %s %s :No administrative info available"
174     #define ERR_NONICKNAMEGIVEN ":%s 431 %s :No nickname given"
175     #define ERR_ERRONEUSNICKNAME ":%s 432 %s %s :Erroneous Nickname"
176     #define ERR_NICKNAMEINUSE ":%s 433 %s %s :Nickname is already in use."
177     #define ERR_NICKCOLLISION ":%s 436 %s %s :Nickname collision KILL"
178     #define ERR_UNAVAILRESOURCE ":%s 437 %s %s :Nick/channel is temporarily unavailable"
179     #define ERR_NICKTOOFAST ":%s 438 %s %s %s :Nick change too fast. Please wait %d seconds."
180     #define ERR_SERVICESDOWN ":%s 440 %s %s :Services is currently down."
181     #define ERR_USERNOTINCHANNEL ":%s 441 %s %s %s :They aren't on that channel"
182     #define ERR_NOTONCHANNEL ":%s 442 %s %s :You're not on that channel"
183     #define ERR_USERONCHANNEL ":%s 443 %s %s %s :is already on channel"
184     #define ERR_NOTREGISTERED ":%s 451 %s :You have not registered"
185     #define ERR_ACCEPTFULL ":%s 456 %s :Accept list is full"
186     #define ERR_ACCEPTEXIST ":%s 457 %s %s!%s@%s :is already on your accept list"
187     #define ERR_ACCEPTNOT ":%s 458 %s %s!%s@%s :is not on your accept list"
188     #define ERR_NEEDMOREPARAMS ":%s 461 %s %s :Not enough parameters"
189     #define ERR_ALREADYREGISTRED ":%s 462 %s :You may not reregister"
190     #define ERR_PASSWDMISMATCH ":%s 464 %s :Password Incorrect"
191     #define ERR_YOUREBANNEDCREEP ":%s 465 %s :You are banned from this server- %s"
192     #define ERR_ONLYSERVERSCANCHANGE ":%s 468 %s %s :Only servers can change that mode"
193     #define ERR_OPERONLYCHAN ":%s 470 %s %s :Cannot join channel (+O)"
194     #define ERR_CHANNELISFULL ":%s 471 %s %s :Cannot join channel (+l)"
195     #define ERR_UNKNOWNMODE ":%s 472 %s %c :is unknown mode char to me"
196     #define ERR_INVITEONLYCHAN ":%s 473 %s %s :Cannot join channel (+i)"
197     #define ERR_BANNEDFROMCHAN ":%s 474 %s %s :Cannot join channel (+b)"
198     #define ERR_BADCHANNELKEY ":%s 475 %s %s :Cannot join channel (+k)"
199     #define ERR_NEEDREGGEDNICK ":%s 477 %s %s :You need to identify to a registered nick to join or speak in that channel."
200     #define ERR_BANLISTFULL ":%s 478 %s %s %s :Channel ban list is full"
201     #define ERR_BADCHANNAME ":%s 479 %s %s :Illegal channel name"
202     #define ERR_SSLONLYCHAN ":%s 480 %s %s :Cannot join channel (+S)"
203     #define ERR_NOPRIVILEGES ":%s 481 %s :Permission Denied - You're not an IRC operator"
204     #define ERR_CHANOPRIVSNEEDED ":%s 482 %s %s :You're not channel operator"
205     #define ERR_CANTKILLSERVER ":%s 483 %s :You can't kill a server!"
206     #define ERR_RESTRICTED ":%s 484 %s :You are restricted"
207     #define ERR_NONONREG ":%s 486 %s %s :You must identify to a registered nick to private message that person"
208     #define ERR_NOOPERHOST ":%s 491 %s :Only few of mere mortals may try to enter the twilight zone"
209     #define ERR_UMODEUNKNOWNFLAG ":%s 501 %s :Unknown MODE flag"
210     #define ERR_USERSDONTMATCH ":%s 502 %s :Can't change mode for other users"
211     #define ERR_GHOSTEDCLIENT ":%s 503 %s :Message could not be delivered to %s"
212     #define ERR_USERNOTONSERV ":%s 504 %s %s :User is not on this server"
213     #define ERR_TOOMANYWATCH ":%s 512 %s %s :Maximum size for WATCH-list is %d entries"
214     #define ERR_WRONGPONG ":%s 513 %s :To connect type /QUOTE PONG %u"
215     #define ERR_LISTSYNTAX ":%s 521 %s :Bad list syntax, type /QUOTE HELP LIST"
216     #define ERR_HELPNOTFOUND ":%s 524 %s %s :Help not found"
217     #define RPL_LOGON ":%s 600 %s %s %s %s %d :logged online"
218     #define RPL_LOGOFF ":%s 601 %s %s %s %s %d :logged offline"
219     #define RPL_WATCHOFF ":%s 602 %s %s %s %s %d :stopped watching"
220     #define RPL_WATCHSTAT ":%s 603 %s :You have %u and are on %u WATCH entries"
221     #define RPL_NOWON ":%s 604 %s %s %s %s %d :is online"
222     #define RPL_NOWOFF ":%s 605 %s %s %s %s %d :is offline"
223     #define RPL_WATCHLIST ":%s 606 %s :%s"
224     #define RPL_ENDOFWATCHLIST ":%s 607 %s :End of WATCH %c"
225     #define RPL_WHOISSECURE ":%s 671 %s %s :is connected via SSL (secure link)"
226     #define RPL_MODLIST ":%s 702 %s %s %p %s %s"
227     #define RPL_ENDOFMODLIST ":%s 703 %s :End of /MODLIST."
228     #define RPL_HELPSTART ":%s 704 %s %s :%s"
229     #define RPL_HELPTXT ":%s 705 %s %s :%s"
230     #define RPL_ENDOFHELP ":%s 706 %s %s :End of /HELP."
231     #define RPL_ETRACE_FULL ":%s 708 %s %s %s %s %s %s %s %s %s :%s"
232     #define RPL_ETRACE ":%s 709 %s %s %s %s %s %s %s :%s"
233     #define RPL_KNOCK ":%s 710 %s %s %s!%s@%s :has asked for an invite."
234     #define RPL_KNOCKDLVR ":%s 711 %s %s :Your KNOCK has been delivered."
235     #define ERR_TOOMANYKNOCK ":%s 712 %s %s :Too many KNOCKs (%s)."
236     #define ERR_CHANOPEN ":%s 713 %s %s :Channel is open."
237     #define ERR_KNOCKONCHAN ":%s 714 %s %s :You are already on that channel."
238     #define RPL_TARGUMODEG ":%s 716 %s %s :is in +g mode (server side ignore)"
239     #define RPL_TARGNOTIFY ":%s 717 %s %s :has been informed that you messaged them."
240     #define RPL_UMODEGMSG ":%s 718 %s %s :is messaging you, and you are umode +g."
241     #define ERR_NOPRIVS ":%s 723 %s %s :Insufficient oper privs."
242     #define RPL_TESTMASK ":%s 724 %s %s!%s@%s %u %u :Local/remote clients match."
243     #define RPL_TESTLINE ":%s 725 %s %c %ld %s :%s"
244     #define RPL_NOTESTLINE ":%s 726 %s %s :No matches"
245     #define RPL_STATSDEBUG 249 /* XXX */
246     #endif

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision