]> arthur.barton.de Git - ngircd-alex.git/blob - src/ngircd/messages.h
f11fe213919b545cc51a84bee15d897a0eeb6d31
[ngircd-alex.git] / src / ngircd / messages.h
1 /*
2  * ngIRCd -- The Next Generation IRC Daemon
3  * Copyright (c)2001 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.13 2001/12/31 15:33:13 alex Exp $
13  *
14  * irc.h: IRC-Befehle (Header)
15  *
16  * $Log: messages.h,v $
17  * Revision 1.13  2001/12/31 15:33:13  alex
18  * - neuer Befehl NAMES, kleinere Bugfixes.
19  * - Bug bei PING behoben: war zu restriktiv implementiert :-)
20  *
21  * Revision 1.12  2001/12/31 02:18:51  alex
22  * - viele neue Befehle (WHOIS, ISON, OPER, DIE, RESTART),
23  * - neuen Header "defines.h" mit (fast) allen Konstanten.
24  * - Code Cleanups und viele "kleine" Aenderungen & Bugfixes.
25  *
26  * Revision 1.11  2001/12/30 19:25:39  alex
27  * - RPL_MYINFO_MSG um unterstuetzte User-Modes ergaengz.
28  *
29  * Revision 1.10  2001/12/30 11:42:00  alex
30  * - der Server meldet nun eine ordentliche "Start-Zeit".
31  *
32  * Revision 1.9  2001/12/29 03:06:56  alex
33  * - Texte ergaenzt, einige Bugs behoben (Leerzeichen falsch gesetzt, z.B.)
34  *
35  * Revision 1.8  2001/12/27 19:17:26  alex
36  * - neue Befehle PRIVMSG, NOTICE, PING.
37  *
38  * Revision 1.7  2001/12/27 16:56:06  alex
39  * - RPL_WELCOME an Client_GetID() angepasst.
40  *
41  * Revision 1.6  2001/12/26 22:48:53  alex
42  * - MOTD-Datei ist nun konfigurierbar und wird gelesen.
43  *
44  * Revision 1.5  2001/12/26 03:51:13  alex
45  * - in ERR_NOTREGISTERED_MSG fehlte ein "%s" - jetzt steht auch hier der Nick.
46  *
47  * Revision 1.4  2001/12/26 03:22:40  alex
48  * - Format der Meldungen ueberarbeitet: fast immer ist nun der Nick enthalten.
49  *
50  * Revision 1.3  2001/12/25 19:20:11  alex
51  * - neue Message: ERR_NICKNAMEINUSE[_MSG].
52  *
53  * Revision 1.2  2001/12/24 01:30:46  alex
54  * - einige Messages korrigiert, andere ergaenzt (u.a. fuer MOTD).
55  *
56  * Revision 1.1  2001/12/23 21:53:32  alex
57  * - Ich habe diesen Header begonnen.
58  *
59  * Revision 1.1  2001/12/14 08:13:43  alex
60  * - neues Modul begonnen :-)
61  */
62
63
64 #ifndef __messages_h__
65 #define __messages_h__
66
67
68 #define RPL_WELCOME                     "001"
69 #define RPL_WELCOME_MSG                 RPL_WELCOME" %s :Welcome to the Internet Relay Network %s"
70
71 #define RPL_YOURHOST                    "002"
72 #define RPL_YOURHOST_MSG                RPL_YOURHOST" %s :Your host is %s, running ngircd "VERSION"-"P_OSNAME"/"P_ARCHNAME
73
74 #define RPL_CREATED                     "003"
75 #define RPL_CREATED_MSG                 RPL_CREATED" %s :This server was started %s"
76
77 #define RPL_MYINFO                      "004"
78 #define RPL_MYINFO_MSG                  RPL_MYINFO" %s %s ngircd-"VERSION" ir +"
79
80 #define RPL_MOTDSTART                   "375"
81 #define RPL_MOTDSTART_MSG               RPL_MOTDSTART" %s :- %s message of the day"
82
83 #define RPL_MOTD                        "372"
84 #define RPL_MOTD_MSG                    RPL_MOTD" %s :- %s"
85
86 #define RPL_ENDOFMOTD                   "376"
87 #define RPL_ENDOFMOTD_MSG               RPL_ENDOFMOTD" %s :End of MOTD command"
88
89 #define RPL_UMODEIS                     "211"
90 #define RPL_UMODEIS_MSG                 RPL_UMODEIS" %s +%s"
91
92 #define RPL_USERHOST                    "302"
93 #define RPL_USERHOST_MSG                RPL_USERHOST" %s :"
94
95 #define RPL_ISON                        "303"
96 #define RPL_ISON_MSG                    RPL_ISON" %s :"
97
98 #define RPL_WHOISUSER                   "311"
99 #define RPL_WHOISUSER_MSG               RPL_WHOISUSER" %s %s %s %s * :%s"
100
101 #define RPL_WHOISSERVER                 "312"
102 #define RPL_WHOISSERVER_MSG             RPL_WHOISSERVER" %s %s %s :%s"
103
104 #define RPL_WHOISOPERATOR               "313"
105 #define RPL_WHOISOPERATOR_MSG           RPL_WHOISOPERATOR" %s %s :is an IRC operator"
106
107 #define RPL_WHOISIDLE                   "317"
108 #define RPL_WHOISIDLE_MSG               RPL_WHOISIDLE" %s %s %ld :seconds idle"
109
110 #define RPL_ENDOFWHOIS                  "318"
111 #define RPL_ENDOFWHOIS_MSG              RPL_ENDOFWHOIS" %s %s :End of WHOIS list"
112
113 #define RPL_WHOISCHANNELS               "319"
114 #define RPL_WHOISCHANNELS_MSG           RPL_WHOISCHANNELS" %s :"
115
116 #define RPL_NAMREPLY                    "353"
117 #define RPL_NAMREPLY_MSG                RPL_NAMREPLY" %s %s %s :%s"
118
119 #define RPL_ENDOFNAMES                  "366"
120 #define RPL_ENDOFNAMES_MSG              RPL_ENDOFNAMES" %s %s :End of NAMES list"
121
122 #define RPL_YOUREOPER                   "381"
123 #define RPL_YOUREOPER_MSG               RPL_YOUREOPER" %s :You are now an IRC Operator"
124
125
126 #define ERR_NOSUCHNICK                  "401"
127 #define ERR_NOSUCHNICK_MSG              ERR_NOSUCHNICK" %s %s :No such nick or channel name"
128
129 #define ERR_NOORIGIN                    "409"
130 #define ERR_NOORIGIN_MSG                ERR_NOORIGIN" %s :No origin specified"
131
132 #define ERR_NORECIPIENT                 "411"
133 #define ERR_NORECIPIENT_MSG             ERR_NORECIPIENT" %s :No receipient given (%s)"
134
135 #define ERR_NOTEXTTOSEND                "412"
136 #define ERR_NOTEXTTOSEND_MSG            ERR_NOTEXTTOSEND" %s :No text to send"
137
138 #define ERR_UNKNOWNCOMMAND              "421"
139 #define ERR_UNKNOWNCOMMAND_MSG          ERR_UNKNOWNCOMMAND" %s %s :Unknown command"
140
141 #define ERR_NOMOTD                      "422"
142 #define ERR_NOMOTD_MSG                  ERR_NOMOTD" %s :MOTD file is missing"
143
144 #define ERR_ERRONEUSNICKNAME            "432"
145 #define ERR_ERRONEUSNICKNAME_MSG        ERR_ERRONEUSNICKNAME" %s %s :Erroneous nickname"
146
147 #define ERR_NICKNAMEINUSE               "433"
148 #define ERR_NICKNAMEINUSE_MSG           ERR_NICKNAMEINUSE" %s %s :Nickname already in use"
149
150 #define ERR_NEEDMOREPARAMS              "461"
151 #define ERR_NEEDMOREPARAMS_MSG          ERR_NEEDMOREPARAMS" %s %s :Syntax error"
152
153 #define ERR_ALREADYREGISTRED            "462"
154 #define ERR_ALREADYREGISTRED_MSG        ERR_ALREADYREGISTRED" %s :Connection already registered"
155
156 #define ERR_PASSWDMISMATCH              "464"
157 #define ERR_PASSWDMISMATCH_MSG          ERR_PASSWDMISMATCH" %s: Invalid password"
158
159 #define ERR_NOTREGISTERED               "451"
160 #define ERR_NOTREGISTERED_MSG           ERR_NOTREGISTERED" %s :Connection not registered"
161
162 #define ERR_NOPRIVILEGES                "481"
163 #define ERR_NOPRIVILEGES_MSG            ERR_NOPRIVILEGES" %s :Permission denied"
164
165 #define ERR_RESTRICTED                  "484"
166 #define ERR_RESTRICTED_MSG              ERR_RESTRICTED" %s :Your connection is restricted"
167
168 #define ERR_NOOPERHOST                  "491"
169 #define ERR_NOOPERHOST_MSG              ERR_NOOPERHOST" %s :Not configured for your host"
170
171 #define ERR_UMODEUNKNOWNFLAG            "501"
172 #define ERR_UMODEUNKNOWNFLAG_MSG        ERR_UMODEUNKNOWNFLAG" %s :Unknown mode flag"
173
174 #define ERR_USERSDONTMATCH              "502"
175 #define ERR_USERSDONTMATCH_MSG          ERR_USERSDONTMATCH" %s :Can't set/get mode for other users"
176
177
178 #endif
179
180
181 /* -eof- */