ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/numeric.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/numeric.c (file contents):
Revision 2511 by michael, Sun Oct 27 18:56:53 2013 UTC vs.
Revision 2947 by michael, Sun Jan 26 19:41:03 2014 UTC

# Line 1 | Line 1
1   /*
2 < *  ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 < *  numeric.c: Numeric handling functions.
2 > *  ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3   *
4 < *  Copyright (C) 2002 by the past and present ircd coders, and others.
4 > *  Copyright (c) 1997-2014 ircd-hybrid development team
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 18 | Line 17
17   *  along with this program; if not, write to the Free Software
18   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
19   *  USA
20 < *
21 < *  $Id$
20 > */
21 >
22 > /*! \file numeric.c
23 > * \brief Declarations of numeric replies.
24 > * \version $Id$
25   */
26  
27   #include "stdinc.h"
28   #include "numeric.h"
29  
30  
31 < static const char *const replies[] = {
31 > static const char *const replies[] =
32 > {
33   /* 000 */ NULL,
34   /* 001 RPL_WELCOME */ ":%s 001 %s :Welcome to the %s Internet Relay Chat Network %s",
35   /* 002 RPL_YOURHOST */ ":%s 002 %s :Your host is %s, running version %s",
36   /* 003 RPL_CREATED */ ":%s 003 %s :This server was created %s",
37 + #ifdef HALFOPS
38 + /* 004 RPL_MYINFO */ ":%s 004 %s %s %s %s bciklmnoprstveIMORS bkloveIh",
39 + #else
40   /* 004 RPL_MYINFO */ ":%s 004 %s %s %s %s bciklmnoprstveIMORS bkloveI",
41 + #endif
42   /* 005 RPL_ISUPPORT */ ":%s 005 %s %s :are supported by this server",
43   /* 006 */ NULL,
44   /* 007 */ NULL,
# Line 270 | Line 277 | static const char *const replies[] = {
277   /* 240 */ NULL,
278   /* 241 RPL_STATSLLINE */ ":%s 241 %s %c %s * %s %d %s",
279   /* 242 RPL_STATSUPTIME */ ":%s 242 %s :Server Up %d days, %d:%02d:%02d",
280 < /* 243 RPL_STATSOLINE */ ":%s 243 %s %c %u %s@%s * %s %s %s",
280 > /* 243 RPL_STATSOLINE */ ":%s 243 %s %c %s@%s * %s %s %s",
281   /* 244 RPL_STATSHLINE */ ":%s 244 %s %c %s * %s %d %s",
282   /* 245 RPL_STATSTLINE */ ":%s 245 %s T %s %s",
283   /* 246 RPL_STATSSERVICE */ ":%s 246 %s %c %s * %s %d %d",
# Line 335 | Line 342 | static const char *const replies[] = {
342   /* 305 RPL_UNAWAY */ ":%s 305 %s :You are no longer marked as being away",
343   /* 306 RPL_NOWAWAY */ ":%s 306 %s :You have been marked as being away",
344   /* 307 RPL_WHOISREGNICK */ ":%s 307 %s %s :has identified for this nick",
345 < /* 308 RPL_WHOISADMIN */ ":%s 313 %s %s :is a Server Administrator",
345 > /* 308 */ NULL,
346   /* 309 */ NULL,
347   /* 310 */ NULL,
348   /* 311 RPL_WHOISUSER */ ":%s 311 %s %s %s %s * :%s",
349   /* 312 RPL_WHOISSERVER */ ":%s 312 %s %s %s :%s",
350 < /* 313 RPL_WHOISOPERATOR */ ":%s 313 %s %s :is an IRC Operator",
350 > /* 313 RPL_WHOISOPERATOR */ ":%s 313 %s %s :%s",
351   /* 314 RPL_WHOWASUSER */ ":%s 314 %s %s %s %s * :%s",
352   /* 315 RPL_ENDOFWHO */ ":%s 315 %s %s :End of /WHO list.",
353   /* 316 */ NULL,
# Line 349 | Line 356 | static const char *const replies[] = {
356   /* 319 RPL_WHOISCHANNELS */ ":%s 319 %s %s :%s",
357   /* 320 */ NULL,
358   /* 321 RPL_LISTSTART */ ":%s 321 %s Channel :Users  Name",
359 < /* 322 RPL_LIST */ ":%s 322 %s %s %d :%s",
359 > /* 322 RPL_LIST */ ":%s 322 %s %s %d :%s%s",
360   /* 323 RPL_LISTEND */ ":%s 323 %s :End of /LIST",
361   /* 324 RPL_CHANNELMODEIS */ ":%s 324 %s %s %s %s",
362   /* 325 */ NULL,
# Line 364 | Line 371 | static const char *const replies[] = {
371   /* 334 */ NULL,
372   /* 335 */ NULL,
373   /* 336 */ NULL,
374 < /* 338 RPL_WHOISTEXT */ ":%s 337 %s %s :%s",
374 > /* 337 RPL_WHOISTEXT */ ":%s 337 %s %s :%s",
375   /* 338 RPL_WHOISACTUALLY */ ":%s 338 %s %s %s :actually using host",
376   /* 339 */ NULL,
377   /* 340 */ NULL,
# Line 406 | Line 413 | static const char *const replies[] = {
413   /* 376 RPL_ENDOFMOTD */ ":%s 376 %s :End of /MOTD command.",
414   /* 377 */ NULL,
415   /* 378 */ NULL,
416 < /* 379 */ NULL,
416 > /* 379 RPL_WHOISMODES */ ":%s 379 %s %s :is using modes %s",
417   /* 380 */ NULL,
418   /* 381 RPL_YOUREOPER */ ":%s 381 %s :You have entered... the Twilight Zone!",
419   /* 382 RPL_REHASHING */ ":%s 382 %s %s :Rehashing",
# Line 743 | Line 750 | static const char *const replies[] = {
750   /* 713 ERR_CHANOPEN */ ":%s 713 %s %s :Channel is open.",
751   /* 714 ERR_KNOCKONCHAN */ ":%s 714 %s %s :You are already on that channel.",
752   /* 715 */ NULL,
753 < /* 716 RPL_TARGUMODEG */ ":%s 716 %s %s :is in +g mode (server side ignore)",
753 > /* 716 RPL_TARGUMODEG */ ":%s 716 %s %s :is in %s mode (%s)",
754   /* 717 RPL_TARGNOTIFY */ ":%s 717 %s %s :has been informed that you messaged them.",
755 < /* 718 RPL_UMODEGMSG */ ":%s 718 %s %s :is messaging you, and you are umode +g.",
755 > /* 718 RPL_UMODEGMSG */ ":%s 718 %s %s :is messaging you, and you are umode %s.",
756   /* 719 */ NULL,
757   /* 720 */ NULL,
758   /* 721 */ NULL,
# Line 1037 | Line 1044 | static const char *const replies[] = {
1044   * side effects - NONE
1045   */
1046   const char *
1047 < form_str(unsigned int numeric)
1047 > form_str(enum irc_numerics numeric)
1048   {
1049    assert(numeric < ERR_LAST_ERR_MSG);
1050  

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)