]> arthur.barton.de Git - ngircd-alex.git/blob - src/ngircd/messages.h
- neue Text-Konstante: ERR_NOTONCHANNEL_MSG
[ngircd-alex.git] / src / ngircd / messages.h
1 /*
2  * ngIRCd -- The Next Generation IRC Daemon
3  * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
4  *
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.
11  *
12  * $Id: messages.h,v 1.33 2002/02/27 20:33:01 alex Exp $
13  *
14  * irc.h: IRC-Befehle (Header)
15  *
16  * $Log: messages.h,v $
17  * Revision 1.33  2002/02/27 20:33:01  alex
18  * - neue Text-Konstante: ERR_NOTONCHANNEL_MSG
19  *
20  * Revision 1.32  2002/02/27 18:23:24  alex
21  * - neue Text-Konstanten RPL_UNAWAY_MSG und RPL_NOWAWAY_MSG.
22  *
23  * Revision 1.31  2002/02/27 17:05:13  alex
24  * - neue Text-Konstante ERR_CANNOTSENDTOCHAN_MSG eingefuehrt.
25  *
26  * Revision 1.30  2002/02/17 23:39:24  alex
27  * - Konstanten sortiert, neue Konstante RPL_VERSION und RPL_VERSION_MSG.
28  *
29  * Revision 1.29  2002/02/17 17:42:53  alex
30  * - neue Text-Konstante ERR_UMODEUNKNOWNFLAG2_MSG.
31  *
32  * Revision 1.28  2002/02/13 23:04:50  alex
33  * - RPL_MYINFO_MSG korrigiert.
34  *
35  * Revision 1.27  2002/02/13 17:45:57  alex
36  * - unterstuetzte User- und Channel-Modes stehen nun in Konstanten.
37  *
38  * Revision 1.26  2002/02/11 23:33:12  alex
39  * - neue Message ERR_CHANOPRIVSNEEDED_MSG definiert.
40  *
41  * Revision 1.25  2002/02/11 15:48:39  alex
42  * - neue Nachricht RPL_CHANNELMODEIS definiert.
43  *
44  * Revision 1.24  2002/02/06 16:51:39  alex
45  * - neue Text-Konstante RPL_UMODEISCHAN_MSG.
46  *
47  * Revision 1.23  2002/01/29 00:14:05  alex
48  * - RPL_WHOISCHANNELS_MSG korrigiert.
49  *
50  * Revision 1.22  2002/01/28 13:06:19  alex
51  * - RPL_NAMREPLY_MSG an tatsaechliche Implementierung angepasst ;-)
52  *
53  * Revision 1.21  2002/01/27 17:13:37  alex
54  * - neue Defines fuer RPL_TOPIC und RPL_NOTOPIC.
55  *
56  * Revision 1.20  2002/01/21 00:02:34  alex
57  * - ERR_NOSUCHCHANNEL hinzugefuegt.
58  *
59  * Revision 1.19  2002/01/16 22:09:52  alex
60  * - RPL_LUSERME_MSG erweitert, kleinere Aenderungen.
61  *
62  * Revision 1.18  2002/01/11 23:50:55  alex
63  * - LINKS implementiert, LUSERS begonnen.
64  *
65  * Revision 1.17  2002/01/05 23:23:44  alex
66  * - neue Nachricht ERR_NOSUCHSERVER_MSG definiert.
67  *
68  * Revision 1.16  2002/01/03 02:24:21  alex
69  * - neue Message ERR_NOTREGISTEREDSERVER_MSG.
70  *
71  * Revision 1.15  2002/01/02 02:42:58  alex
72  * - Copyright-Texte aktualisiert.
73  *
74  * Revision 1.14  2001/12/31 16:00:57  alex
75  * - "o" zu den unterstuetzten Modes hinzugefuegt.
76  *
77  * Revision 1.13  2001/12/31 15:33:13  alex
78  * - neuer Befehl NAMES, kleinere Bugfixes.
79  * - Bug bei PING behoben: war zu restriktiv implementiert :-)
80  *
81  * Revision 1.12  2001/12/31 02:18:51  alex
82  * - viele neue Befehle (WHOIS, ISON, OPER, DIE, RESTART),
83  * - neuen Header "defines.h" mit (fast) allen Konstanten.
84  * - Code Cleanups und viele "kleine" Aenderungen & Bugfixes.
85  *
86  * Revision 1.11  2001/12/30 19:25:39  alex
87  * - RPL_MYINFO_MSG um unterstuetzte User-Modes ergaengz.
88  *
89  * Revision 1.10  2001/12/30 11:42:00  alex
90  * - der Server meldet nun eine ordentliche "Start-Zeit".
91  *
92  * Revision 1.9  2001/12/29 03:06:56  alex
93  * - Texte ergaenzt, einige Bugs behoben (Leerzeichen falsch gesetzt, z.B.)
94  *
95  * Revision 1.8  2001/12/27 19:17:26  alex
96  * - neue Befehle PRIVMSG, NOTICE, PING.
97  *
98  * Revision 1.7  2001/12/27 16:56:06  alex
99  * - RPL_WELCOME an Client_GetID() angepasst.
100  *
101  * Revision 1.6  2001/12/26 22:48:53  alex
102  * - MOTD-Datei ist nun konfigurierbar und wird gelesen.
103  *
104  * Revision 1.5  2001/12/26 03:51:13  alex
105  * - in ERR_NOTREGISTERED_MSG fehlte ein "%s" - jetzt steht auch hier der Nick.
106  *
107  * Revision 1.4  2001/12/26 03:22:40  alex
108  * - Format der Meldungen ueberarbeitet: fast immer ist nun der Nick enthalten.
109  *
110  * Revision 1.3  2001/12/25 19:20:11  alex
111  * - neue Message: ERR_NICKNAMEINUSE[_MSG].
112  *
113  * Revision 1.2  2001/12/24 01:30:46  alex
114  * - einige Messages korrigiert, andere ergaenzt (u.a. fuer MOTD).
115  *
116  * Revision 1.1  2001/12/23 21:53:32  alex
117  * - Ich habe diesen Header begonnen.
118  *
119  * Revision 1.1  2001/12/14 08:13:43  alex
120  * - neues Modul begonnen :-)
121  */
122
123
124 #ifndef __messages_h__
125 #define __messages_h__
126
127
128 #define RPL_WELCOME                     "001"
129 #define RPL_WELCOME_MSG                 RPL_WELCOME" %s :Welcome to the Internet Relay Network %s"
130
131 #define RPL_YOURHOST                    "002"
132 #define RPL_YOURHOST_MSG                RPL_YOURHOST" %s :Your host is %s, running ngircd "VERSION"-"P_OSNAME"/"P_ARCHNAME
133
134 #define RPL_CREATED                     "003"
135 #define RPL_CREATED_MSG                 RPL_CREATED" %s :This server was started %s"
136
137 #define RPL_MYINFO                      "004"
138 #define RPL_MYINFO_MSG                  RPL_MYINFO" %s :%s ngircd-"VERSION" "USERMODES" "CHANMODES
139
140 #define RPL_UMODEIS                     "211"
141 #define RPL_UMODEIS_MSG                 RPL_UMODEIS" %s +%s"
142
143 #define RPL_LUSERCLIENT                 "251"
144 #define RPL_LUSERCLIENT_MSG             RPL_LUSERCLIENT" %s :There are %d users and %d services on %d servers"
145
146 #define RPL_LUSEROP                     "252"
147 #define RPL_LUSEROP_MSG                 RPL_LUSEROP" %s %d :operator(s) online"
148
149 #define RPL_LUSERUNKNOWN                "253"
150 #define RPL_LUSERUNKNOWN_MSG            RPL_LUSERUNKNOWN" %s %d :unknown connection(s)"
151
152 #define RPL_LUSERCHANNELS               "254"
153 #define RPL_LUSERCHANNELS_MSG           RPL_LUSERCHANNELS" %s %d :channels formed"
154
155 #define RPL_LUSERME                     "255"
156 #define RPL_LUSERME_MSG                 RPL_LUSERME" %s :I have %d users, %d services and %d servers"
157
158
159 #define RPL_UNAWAY                      "305"
160 #define RPL_UNAWAY_MSG                  RPL_UNAWAY" %s :You are no longer marked as being away"
161
162 #define RPL_NOWAWAY                     "306"
163 #define RPL_NOWAWAY_MSG                 RPL_NOWAWAY" %s :You have been marked as being away"
164
165 #define RPL_MOTD                        "372"
166 #define RPL_MOTD_MSG                    RPL_MOTD" %s :- %s"
167
168 #define RPL_MOTDSTART                   "375"
169 #define RPL_MOTDSTART_MSG               RPL_MOTDSTART" %s :- %s message of the day"
170
171 #define RPL_ENDOFMOTD                   "376"
172 #define RPL_ENDOFMOTD_MSG               RPL_ENDOFMOTD" %s :End of MOTD command"
173
174 #define RPL_AWAY                        "301"
175 #define RPL_AWAY_MSG                    RPL_AWAY" %s %s :%s"
176
177 #define RPL_USERHOST                    "302"
178 #define RPL_USERHOST_MSG                RPL_USERHOST" %s :"
179
180 #define RPL_ISON                        "303"
181 #define RPL_ISON_MSG                    RPL_ISON" %s :"
182
183 #define RPL_WHOISUSER                   "311"
184 #define RPL_WHOISUSER_MSG               RPL_WHOISUSER" %s %s %s %s * :%s"
185
186 #define RPL_WHOISSERVER                 "312"
187 #define RPL_WHOISSERVER_MSG             RPL_WHOISSERVER" %s %s %s :%s"
188
189 #define RPL_WHOISOPERATOR               "313"
190 #define RPL_WHOISOPERATOR_MSG           RPL_WHOISOPERATOR" %s %s :is an IRC operator"
191
192 #define RPL_WHOISIDLE                   "317"
193 #define RPL_WHOISIDLE_MSG               RPL_WHOISIDLE" %s %s %ld :seconds idle"
194
195 #define RPL_ENDOFWHOIS                  "318"
196 #define RPL_ENDOFWHOIS_MSG              RPL_ENDOFWHOIS" %s %s :End of WHOIS list"
197
198 #define RPL_WHOISCHANNELS               "319"
199 #define RPL_WHOISCHANNELS_MSG           RPL_WHOISCHANNELS" %s %s :"
200
201 #define RPL_CHANNELMODEIS               "324"
202 #define RPL_CHANNELMODEIS_MSG           RPL_CHANNELMODEIS" %s %s +%s"
203
204 #define RPL_NOTOPIC                     "331"
205 #define RPL_NOTOPIC_MSG                 RPL_NOTOPIC" %s %s :No topic is set"
206
207 #define RPL_TOPIC                       "332"
208 #define RPL_TOPIC_MSG                   RPL_TOPIC" %s %s :%s"
209
210 #define RPL_VERSION                     "351"
211 #define RPL_VERSION_MSG                 RPL_VERSION" %s "PACKAGE"-"VERSION".%s %s :%s"
212
213 #define RPL_NAMREPLY                    "353"
214 #define RPL_NAMREPLY_MSG                RPL_NAMREPLY" %s %s %s :"
215
216 #define RPL_LINKS                       "364"
217 #define RPL_LINKS_MSG                   RPL_LINKS" %s %s %s :%d %s"
218
219 #define RPL_ENDOFLINKS                  "365"
220 #define RPL_ENDOFLINKS_MSG              RPL_ENDOFLINKS" %s %s :End of LINKS list"
221
222 #define RPL_ENDOFNAMES                  "366"
223 #define RPL_ENDOFNAMES_MSG              RPL_ENDOFNAMES" %s %s :End of NAMES list"
224
225 #define RPL_YOUREOPER                   "381"
226 #define RPL_YOUREOPER_MSG               RPL_YOUREOPER" %s :You are now an IRC Operator"
227
228
229 #define ERR_NOSUCHNICK                  "401"
230 #define ERR_NOSUCHNICK_MSG              ERR_NOSUCHNICK" %s %s :No such nick or channel name"
231
232 #define ERR_NOSUCHSERVER                "402"
233 #define ERR_NOSUCHSERVER_MSG            ERR_NOSUCHSERVER" %s %s :No such server"
234
235 #define ERR_NOSUCHCHANNEL               "403"
236 #define ERR_NOSUCHCHANNEL_MSG           ERR_NOSUCHCHANNEL" %s %s :No such channel"
237
238 #define ERR_CANNOTSENDTOCHAN            "404"
239 #define ERR_CANNOTSENDTOCHAN_MSG        ERR_CANNOTSENDTOCHAN" %s %s :Cannot send to channel"
240
241 #define ERR_NOORIGIN                    "409"
242 #define ERR_NOORIGIN_MSG                ERR_NOORIGIN" %s :No origin specified"
243
244 #define ERR_NORECIPIENT                 "411"
245 #define ERR_NORECIPIENT_MSG             ERR_NORECIPIENT" %s :No receipient given (%s)"
246
247 #define ERR_NOTEXTTOSEND                "412"
248 #define ERR_NOTEXTTOSEND_MSG            ERR_NOTEXTTOSEND" %s :No text to send"
249
250 #define ERR_UNKNOWNCOMMAND              "421"
251 #define ERR_UNKNOWNCOMMAND_MSG          ERR_UNKNOWNCOMMAND" %s %s :Unknown command"
252
253 #define ERR_NOMOTD                      "422"
254 #define ERR_NOMOTD_MSG                  ERR_NOMOTD" %s :MOTD file is missing"
255
256 #define ERR_ERRONEUSNICKNAME            "432"
257 #define ERR_ERRONEUSNICKNAME_MSG        ERR_ERRONEUSNICKNAME" %s %s :Erroneous nickname"
258
259 #define ERR_NICKNAMEINUSE               "433"
260 #define ERR_NICKNAMEINUSE_MSG           ERR_NICKNAMEINUSE" %s %s :Nickname already in use"
261
262 #define ERR_NOTONCHANNEL                "442"
263 #define ERR_NOTONCHANNEL_MSG            ERR_NOTONCHANNEL" %s %s :You are not on that channel"
264
265 #define ERR_NOTREGISTERED               "451"
266 #define ERR_NOTREGISTERED_MSG           ERR_NOTREGISTERED" %s :Connection not registered"
267 #define ERR_NOTREGISTEREDSERVER_MSG     ERR_NOTREGISTERED" %s :Connection not registered as server link"
268
269 #define ERR_NEEDMOREPARAMS              "461"
270 #define ERR_NEEDMOREPARAMS_MSG          ERR_NEEDMOREPARAMS" %s %s :Syntax error"
271
272 #define ERR_ALREADYREGISTRED            "462"
273 #define ERR_ALREADYREGISTRED_MSG        ERR_ALREADYREGISTRED" %s :Connection already registered"
274
275 #define ERR_PASSWDMISMATCH              "464"
276 #define ERR_PASSWDMISMATCH_MSG          ERR_PASSWDMISMATCH" %s: Invalid password"
277
278 #define ERR_NOPRIVILEGES                "481"
279 #define ERR_NOPRIVILEGES_MSG            ERR_NOPRIVILEGES" %s :Permission denied"
280
281 #define ERR_CHANOPRIVSNEEDED            "482"
282 #define ERR_CHANOPRIVSNEEDED_MSG        ERR_CHANOPRIVSNEEDED" %s %s :You are not channel operator"
283
284 #define ERR_RESTRICTED                  "484"
285 #define ERR_RESTRICTED_MSG              ERR_RESTRICTED" %s :Your connection is restricted"
286
287 #define ERR_NOOPERHOST                  "491"
288 #define ERR_NOOPERHOST_MSG              ERR_NOOPERHOST" %s :Not configured for your host"
289
290
291 #define ERR_UMODEUNKNOWNFLAG            "501"
292 #define ERR_UMODEUNKNOWNFLAG_MSG        ERR_UMODEUNKNOWNFLAG" %s :Unknown mode"
293 #define ERR_UMODEUNKNOWNFLAG2_MSG       ERR_UMODEUNKNOWNFLAG" %s :Unknown mode \"%c%c\""
294
295 #define ERR_USERSDONTMATCH              "502"
296 #define ERR_USERSDONTMATCH_MSG          ERR_USERSDONTMATCH" %s :Can't set/get mode for other users"
297
298
299 #endif
300
301
302 /* -eof- */