2 * ngIRCd -- The Next Generation IRC Daemon
3 * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
5 * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
6 * der GNU General Public License (GPL), wie von der Free Software Foundation
7 * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
8 * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
9 * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
10 * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
12 * $Id: messages.h,v 1.16 2002/01/03 02:24:21 alex Exp $
14 * irc.h: IRC-Befehle (Header)
16 * $Log: messages.h,v $
17 * Revision 1.16 2002/01/03 02:24:21 alex
18 * - neue Message ERR_NOTREGISTEREDSERVER_MSG.
20 * Revision 1.15 2002/01/02 02:42:58 alex
21 * - Copyright-Texte aktualisiert.
23 * Revision 1.14 2001/12/31 16:00:57 alex
24 * - "o" zu den unterstuetzten Modes hinzugefuegt.
26 * Revision 1.13 2001/12/31 15:33:13 alex
27 * - neuer Befehl NAMES, kleinere Bugfixes.
28 * - Bug bei PING behoben: war zu restriktiv implementiert :-)
30 * Revision 1.12 2001/12/31 02:18:51 alex
31 * - viele neue Befehle (WHOIS, ISON, OPER, DIE, RESTART),
32 * - neuen Header "defines.h" mit (fast) allen Konstanten.
33 * - Code Cleanups und viele "kleine" Aenderungen & Bugfixes.
35 * Revision 1.11 2001/12/30 19:25:39 alex
36 * - RPL_MYINFO_MSG um unterstuetzte User-Modes ergaengz.
38 * Revision 1.10 2001/12/30 11:42:00 alex
39 * - der Server meldet nun eine ordentliche "Start-Zeit".
41 * Revision 1.9 2001/12/29 03:06:56 alex
42 * - Texte ergaenzt, einige Bugs behoben (Leerzeichen falsch gesetzt, z.B.)
44 * Revision 1.8 2001/12/27 19:17:26 alex
45 * - neue Befehle PRIVMSG, NOTICE, PING.
47 * Revision 1.7 2001/12/27 16:56:06 alex
48 * - RPL_WELCOME an Client_GetID() angepasst.
50 * Revision 1.6 2001/12/26 22:48:53 alex
51 * - MOTD-Datei ist nun konfigurierbar und wird gelesen.
53 * Revision 1.5 2001/12/26 03:51:13 alex
54 * - in ERR_NOTREGISTERED_MSG fehlte ein "%s" - jetzt steht auch hier der Nick.
56 * Revision 1.4 2001/12/26 03:22:40 alex
57 * - Format der Meldungen ueberarbeitet: fast immer ist nun der Nick enthalten.
59 * Revision 1.3 2001/12/25 19:20:11 alex
60 * - neue Message: ERR_NICKNAMEINUSE[_MSG].
62 * Revision 1.2 2001/12/24 01:30:46 alex
63 * - einige Messages korrigiert, andere ergaenzt (u.a. fuer MOTD).
65 * Revision 1.1 2001/12/23 21:53:32 alex
66 * - Ich habe diesen Header begonnen.
68 * Revision 1.1 2001/12/14 08:13:43 alex
69 * - neues Modul begonnen :-)
73 #ifndef __messages_h__
74 #define __messages_h__
77 #define RPL_WELCOME "001"
78 #define RPL_WELCOME_MSG RPL_WELCOME" %s :Welcome to the Internet Relay Network %s"
80 #define RPL_YOURHOST "002"
81 #define RPL_YOURHOST_MSG RPL_YOURHOST" %s :Your host is %s, running ngircd "VERSION"-"P_OSNAME"/"P_ARCHNAME
83 #define RPL_CREATED "003"
84 #define RPL_CREATED_MSG RPL_CREATED" %s :This server was started %s"
86 #define RPL_MYINFO "004"
87 #define RPL_MYINFO_MSG RPL_MYINFO" %s %s ngircd-"VERSION" ior +"
89 #define RPL_MOTDSTART "375"
90 #define RPL_MOTDSTART_MSG RPL_MOTDSTART" %s :- %s message of the day"
92 #define RPL_MOTD "372"
93 #define RPL_MOTD_MSG RPL_MOTD" %s :- %s"
95 #define RPL_ENDOFMOTD "376"
96 #define RPL_ENDOFMOTD_MSG RPL_ENDOFMOTD" %s :End of MOTD command"
98 #define RPL_UMODEIS "211"
99 #define RPL_UMODEIS_MSG RPL_UMODEIS" %s +%s"
101 #define RPL_USERHOST "302"
102 #define RPL_USERHOST_MSG RPL_USERHOST" %s :"
104 #define RPL_ISON "303"
105 #define RPL_ISON_MSG RPL_ISON" %s :"
107 #define RPL_WHOISUSER "311"
108 #define RPL_WHOISUSER_MSG RPL_WHOISUSER" %s %s %s %s * :%s"
110 #define RPL_WHOISSERVER "312"
111 #define RPL_WHOISSERVER_MSG RPL_WHOISSERVER" %s %s %s :%s"
113 #define RPL_WHOISOPERATOR "313"
114 #define RPL_WHOISOPERATOR_MSG RPL_WHOISOPERATOR" %s %s :is an IRC operator"
116 #define RPL_WHOISIDLE "317"
117 #define RPL_WHOISIDLE_MSG RPL_WHOISIDLE" %s %s %ld :seconds idle"
119 #define RPL_ENDOFWHOIS "318"
120 #define RPL_ENDOFWHOIS_MSG RPL_ENDOFWHOIS" %s %s :End of WHOIS list"
122 #define RPL_WHOISCHANNELS "319"
123 #define RPL_WHOISCHANNELS_MSG RPL_WHOISCHANNELS" %s :"
125 #define RPL_NAMREPLY "353"
126 #define RPL_NAMREPLY_MSG RPL_NAMREPLY" %s %s %s :%s"
128 #define RPL_ENDOFNAMES "366"
129 #define RPL_ENDOFNAMES_MSG RPL_ENDOFNAMES" %s %s :End of NAMES list"
131 #define RPL_YOUREOPER "381"
132 #define RPL_YOUREOPER_MSG RPL_YOUREOPER" %s :You are now an IRC Operator"
135 #define ERR_NOSUCHNICK "401"
136 #define ERR_NOSUCHNICK_MSG ERR_NOSUCHNICK" %s %s :No such nick or channel name"
138 #define ERR_NOORIGIN "409"
139 #define ERR_NOORIGIN_MSG ERR_NOORIGIN" %s :No origin specified"
141 #define ERR_NORECIPIENT "411"
142 #define ERR_NORECIPIENT_MSG ERR_NORECIPIENT" %s :No receipient given (%s)"
144 #define ERR_NOTEXTTOSEND "412"
145 #define ERR_NOTEXTTOSEND_MSG ERR_NOTEXTTOSEND" %s :No text to send"
147 #define ERR_UNKNOWNCOMMAND "421"
148 #define ERR_UNKNOWNCOMMAND_MSG ERR_UNKNOWNCOMMAND" %s %s :Unknown command"
150 #define ERR_NOMOTD "422"
151 #define ERR_NOMOTD_MSG ERR_NOMOTD" %s :MOTD file is missing"
153 #define ERR_ERRONEUSNICKNAME "432"
154 #define ERR_ERRONEUSNICKNAME_MSG ERR_ERRONEUSNICKNAME" %s %s :Erroneous nickname"
156 #define ERR_NICKNAMEINUSE "433"
157 #define ERR_NICKNAMEINUSE_MSG ERR_NICKNAMEINUSE" %s %s :Nickname already in use"
159 #define ERR_NEEDMOREPARAMS "461"
160 #define ERR_NEEDMOREPARAMS_MSG ERR_NEEDMOREPARAMS" %s %s :Syntax error"
162 #define ERR_ALREADYREGISTRED "462"
163 #define ERR_ALREADYREGISTRED_MSG ERR_ALREADYREGISTRED" %s :Connection already registered"
165 #define ERR_PASSWDMISMATCH "464"
166 #define ERR_PASSWDMISMATCH_MSG ERR_PASSWDMISMATCH" %s: Invalid password"
168 #define ERR_NOTREGISTERED "451"
169 #define ERR_NOTREGISTERED_MSG ERR_NOTREGISTERED" %s :Connection not registered"
170 #define ERR_NOTREGISTEREDSERVER_MSG ERR_NOTREGISTERED" %s :Connection not registered as server link"
172 #define ERR_NOPRIVILEGES "481"
173 #define ERR_NOPRIVILEGES_MSG ERR_NOPRIVILEGES" %s :Permission denied"
175 #define ERR_RESTRICTED "484"
176 #define ERR_RESTRICTED_MSG ERR_RESTRICTED" %s :Your connection is restricted"
178 #define ERR_NOOPERHOST "491"
179 #define ERR_NOOPERHOST_MSG ERR_NOOPERHOST" %s :Not configured for your host"
181 #define ERR_UMODEUNKNOWNFLAG "501"
182 #define ERR_UMODEUNKNOWNFLAG_MSG ERR_UMODEUNKNOWNFLAG" %s :Unknown mode flag"
184 #define ERR_USERSDONTMATCH "502"
185 #define ERR_USERSDONTMATCH_MSG ERR_USERSDONTMATCH" %s :Can't set/get mode for other users"