Blame


1 a0fd570d 2001-12-23 alex /*
2 a0fd570d 2001-12-23 alex * ngIRCd -- The Next Generation IRC Daemon
3 1547f76c 2002-01-02 alex * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
4 a0fd570d 2001-12-23 alex *
5 a0fd570d 2001-12-23 alex * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
6 a0fd570d 2001-12-23 alex * der GNU General Public License (GPL), wie von der Free Software Foundation
7 a0fd570d 2001-12-23 alex * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
8 a0fd570d 2001-12-23 alex * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
9 a0fd570d 2001-12-23 alex * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
10 804b1ec4 2001-12-31 alex * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
11 a0fd570d 2001-12-23 alex *
12 882c9128 2002-03-12 alex * $Id: messages.h,v 1.37 2002/03/12 22:08:24 alex Exp $
13 a0fd570d 2001-12-23 alex *
14 a0fd570d 2001-12-23 alex * irc.h: IRC-Befehle (Header)
15 a0fd570d 2001-12-23 alex */
16 a0fd570d 2001-12-23 alex
17 a0fd570d 2001-12-23 alex
18 a0fd570d 2001-12-23 alex #ifndef __messages_h__
19 a0fd570d 2001-12-23 alex #define __messages_h__
20 a0fd570d 2001-12-23 alex
21 a0fd570d 2001-12-23 alex
22 a0fd570d 2001-12-23 alex #define RPL_WELCOME "001"
23 9d74f900 2001-12-27 alex #define RPL_WELCOME_MSG RPL_WELCOME" %s :Welcome to the Internet Relay Network %s"
24 a0fd570d 2001-12-23 alex
25 a0fd570d 2001-12-23 alex #define RPL_YOURHOST "002"
26 882c9128 2002-03-12 alex #define RPL_YOURHOST_MSG RPL_YOURHOST" %s :Your host is %s, running ngircd "VERSION"-"TARGET_CPU"/"TARGET_VENDOR"/"TARGET_OS
27 a0fd570d 2001-12-23 alex
28 a0fd570d 2001-12-23 alex #define RPL_CREATED "003"
29 ac9da09e 2001-12-30 alex #define RPL_CREATED_MSG RPL_CREATED" %s :This server was started %s"
30 a0fd570d 2001-12-23 alex
31 a0fd570d 2001-12-23 alex #define RPL_MYINFO "004"
32 b10d05f2 2002-02-13 alex #define RPL_MYINFO_MSG RPL_MYINFO" %s :%s ngircd-"VERSION" "USERMODES" "CHANMODES
33 a0fd570d 2001-12-23 alex
34 5a8a7895 2002-02-17 alex #define RPL_UMODEIS "211"
35 5a8a7895 2002-02-17 alex #define RPL_UMODEIS_MSG RPL_UMODEIS" %s +%s"
36 5a8a7895 2002-02-17 alex
37 c2ee5437 2002-01-11 alex #define RPL_LUSERCLIENT "251"
38 c2ee5437 2002-01-11 alex #define RPL_LUSERCLIENT_MSG RPL_LUSERCLIENT" %s :There are %d users and %d services on %d servers"
39 c2ee5437 2002-01-11 alex
40 c2ee5437 2002-01-11 alex #define RPL_LUSEROP "252"
41 c2ee5437 2002-01-11 alex #define RPL_LUSEROP_MSG RPL_LUSEROP" %s %d :operator(s) online"
42 c2ee5437 2002-01-11 alex
43 c2ee5437 2002-01-11 alex #define RPL_LUSERUNKNOWN "253"
44 c2ee5437 2002-01-11 alex #define RPL_LUSERUNKNOWN_MSG RPL_LUSERUNKNOWN" %s %d :unknown connection(s)"
45 c2ee5437 2002-01-11 alex
46 c2ee5437 2002-01-11 alex #define RPL_LUSERCHANNELS "254"
47 8d48f07d 2002-01-16 alex #define RPL_LUSERCHANNELS_MSG RPL_LUSERCHANNELS" %s %d :channels formed"
48 c2ee5437 2002-01-11 alex
49 c2ee5437 2002-01-11 alex #define RPL_LUSERME "255"
50 8d48f07d 2002-01-16 alex #define RPL_LUSERME_MSG RPL_LUSERME" %s :I have %d users, %d services and %d servers"
51 83177581 2002-02-27 alex
52 83177581 2002-02-27 alex
53 83177581 2002-02-27 alex #define RPL_UNAWAY "305"
54 83177581 2002-02-27 alex #define RPL_UNAWAY_MSG RPL_UNAWAY" %s :You are no longer marked as being away"
55 c2ee5437 2002-01-11 alex
56 83177581 2002-02-27 alex #define RPL_NOWAWAY "306"
57 83177581 2002-02-27 alex #define RPL_NOWAWAY_MSG RPL_NOWAWAY" %s :You have been marked as being away"
58 a0fd570d 2001-12-23 alex
59 660ef230 2001-12-24 alex #define RPL_MOTD "372"
60 660ef230 2001-12-24 alex #define RPL_MOTD_MSG RPL_MOTD" %s :- %s"
61 660ef230 2001-12-24 alex
62 5a8a7895 2002-02-17 alex #define RPL_MOTDSTART "375"
63 5a8a7895 2002-02-17 alex #define RPL_MOTDSTART_MSG RPL_MOTDSTART" %s :- %s message of the day"
64 5a8a7895 2002-02-17 alex
65 660ef230 2001-12-24 alex #define RPL_ENDOFMOTD "376"
66 72ebf4f2 2001-12-27 alex #define RPL_ENDOFMOTD_MSG RPL_ENDOFMOTD" %s :End of MOTD command"
67 660ef230 2001-12-24 alex
68 83177581 2002-02-27 alex #define RPL_AWAY "301"
69 83177581 2002-02-27 alex #define RPL_AWAY_MSG RPL_AWAY" %s %s :%s"
70 83177581 2002-02-27 alex
71 804b1ec4 2001-12-31 alex #define RPL_USERHOST "302"
72 804b1ec4 2001-12-31 alex #define RPL_USERHOST_MSG RPL_USERHOST" %s :"
73 5c806927 2001-12-29 alex
74 804b1ec4 2001-12-31 alex #define RPL_ISON "303"
75 804b1ec4 2001-12-31 alex #define RPL_ISON_MSG RPL_ISON" %s :"
76 804b1ec4 2001-12-31 alex
77 804b1ec4 2001-12-31 alex #define RPL_WHOISUSER "311"
78 804b1ec4 2001-12-31 alex #define RPL_WHOISUSER_MSG RPL_WHOISUSER" %s %s %s %s * :%s"
79 804b1ec4 2001-12-31 alex
80 804b1ec4 2001-12-31 alex #define RPL_WHOISSERVER "312"
81 804b1ec4 2001-12-31 alex #define RPL_WHOISSERVER_MSG RPL_WHOISSERVER" %s %s %s :%s"
82 804b1ec4 2001-12-31 alex
83 804b1ec4 2001-12-31 alex #define RPL_WHOISOPERATOR "313"
84 804b1ec4 2001-12-31 alex #define RPL_WHOISOPERATOR_MSG RPL_WHOISOPERATOR" %s %s :is an IRC operator"
85 804b1ec4 2001-12-31 alex
86 9d5551ba 2002-03-03 alex #define RPL_ENDOFWHO "315"
87 9d5551ba 2002-03-03 alex #define RPL_ENDOFWHO_MSG RPL_ENDOFWHO" %s %s :End of WHO list"
88 9d5551ba 2002-03-03 alex
89 804b1ec4 2001-12-31 alex #define RPL_WHOISIDLE "317"
90 804b1ec4 2001-12-31 alex #define RPL_WHOISIDLE_MSG RPL_WHOISIDLE" %s %s %ld :seconds idle"
91 804b1ec4 2001-12-31 alex
92 804b1ec4 2001-12-31 alex #define RPL_ENDOFWHOIS "318"
93 804b1ec4 2001-12-31 alex #define RPL_ENDOFWHOIS_MSG RPL_ENDOFWHOIS" %s %s :End of WHOIS list"
94 804b1ec4 2001-12-31 alex
95 804b1ec4 2001-12-31 alex #define RPL_WHOISCHANNELS "319"
96 5a0f118d 2002-01-29 alex #define RPL_WHOISCHANNELS_MSG RPL_WHOISCHANNELS" %s %s :"
97 804b1ec4 2001-12-31 alex
98 617cdf06 2002-02-11 alex #define RPL_CHANNELMODEIS "324"
99 617cdf06 2002-02-11 alex #define RPL_CHANNELMODEIS_MSG RPL_CHANNELMODEIS" %s %s +%s"
100 617cdf06 2002-02-11 alex
101 791301dc 2002-01-27 alex #define RPL_NOTOPIC "331"
102 791301dc 2002-01-27 alex #define RPL_NOTOPIC_MSG RPL_NOTOPIC" %s %s :No topic is set"
103 791301dc 2002-01-27 alex
104 791301dc 2002-01-27 alex #define RPL_TOPIC "332"
105 791301dc 2002-01-27 alex #define RPL_TOPIC_MSG RPL_TOPIC" %s %s :%s"
106 791301dc 2002-01-27 alex
107 5a8a7895 2002-02-17 alex #define RPL_VERSION "351"
108 5a8a7895 2002-02-17 alex #define RPL_VERSION_MSG RPL_VERSION" %s "PACKAGE"-"VERSION".%s %s :%s"
109 5a8a7895 2002-02-17 alex
110 9d5551ba 2002-03-03 alex #define RPL_WHOREPLY "352"
111 9d5551ba 2002-03-03 alex #define RPL_WHOREPLY_MSG RPL_WHOREPLY" %s %s %s %s %s %s %s :%d %s"
112 9d5551ba 2002-03-03 alex
113 fb9d6ce1 2001-12-31 alex #define RPL_NAMREPLY "353"
114 8316d98b 2002-01-28 alex #define RPL_NAMREPLY_MSG RPL_NAMREPLY" %s %s %s :"
115 fb9d6ce1 2001-12-31 alex
116 c2ee5437 2002-01-11 alex #define RPL_LINKS "364"
117 c2ee5437 2002-01-11 alex #define RPL_LINKS_MSG RPL_LINKS" %s %s %s :%d %s"
118 c2ee5437 2002-01-11 alex
119 c2ee5437 2002-01-11 alex #define RPL_ENDOFLINKS "365"
120 c2ee5437 2002-01-11 alex #define RPL_ENDOFLINKS_MSG RPL_ENDOFLINKS" %s %s :End of LINKS list"
121 c2ee5437 2002-01-11 alex
122 fb9d6ce1 2001-12-31 alex #define RPL_ENDOFNAMES "366"
123 fb9d6ce1 2001-12-31 alex #define RPL_ENDOFNAMES_MSG RPL_ENDOFNAMES" %s %s :End of NAMES list"
124 fb9d6ce1 2001-12-31 alex
125 804b1ec4 2001-12-31 alex #define RPL_YOUREOPER "381"
126 804b1ec4 2001-12-31 alex #define RPL_YOUREOPER_MSG RPL_YOUREOPER" %s :You are now an IRC Operator"
127 804b1ec4 2001-12-31 alex
128 804b1ec4 2001-12-31 alex
129 72ebf4f2 2001-12-27 alex #define ERR_NOSUCHNICK "401"
130 72ebf4f2 2001-12-27 alex #define ERR_NOSUCHNICK_MSG ERR_NOSUCHNICK" %s %s :No such nick or channel name"
131 72ebf4f2 2001-12-27 alex
132 0b15709e 2002-01-05 alex #define ERR_NOSUCHSERVER "402"
133 0b15709e 2002-01-05 alex #define ERR_NOSUCHSERVER_MSG ERR_NOSUCHSERVER" %s %s :No such server"
134 0b15709e 2002-01-05 alex
135 4c32a6ce 2002-01-21 alex #define ERR_NOSUCHCHANNEL "403"
136 791301dc 2002-01-27 alex #define ERR_NOSUCHCHANNEL_MSG ERR_NOSUCHCHANNEL" %s %s :No such channel"
137 4c32a6ce 2002-01-21 alex
138 82da6d2f 2002-02-27 alex #define ERR_CANNOTSENDTOCHAN "404"
139 82da6d2f 2002-02-27 alex #define ERR_CANNOTSENDTOCHAN_MSG ERR_CANNOTSENDTOCHAN" %s %s :Cannot send to channel"
140 82da6d2f 2002-02-27 alex
141 e0c5ecee 2001-12-26 alex #define ERR_NOORIGIN "409"
142 e0c5ecee 2001-12-26 alex #define ERR_NOORIGIN_MSG ERR_NOORIGIN" %s :No origin specified"
143 e0c5ecee 2001-12-26 alex
144 72ebf4f2 2001-12-27 alex #define ERR_NORECIPIENT "411"
145 5c806927 2001-12-29 alex #define ERR_NORECIPIENT_MSG ERR_NORECIPIENT" %s :No receipient given (%s)"
146 72ebf4f2 2001-12-27 alex
147 72ebf4f2 2001-12-27 alex #define ERR_NOTEXTTOSEND "412"
148 5c806927 2001-12-29 alex #define ERR_NOTEXTTOSEND_MSG ERR_NOTEXTTOSEND" %s :No text to send"
149 72ebf4f2 2001-12-27 alex
150 a0fd570d 2001-12-23 alex #define ERR_UNKNOWNCOMMAND "421"
151 e0c5ecee 2001-12-26 alex #define ERR_UNKNOWNCOMMAND_MSG ERR_UNKNOWNCOMMAND" %s %s :Unknown command"
152 a0fd570d 2001-12-23 alex
153 574ae82c 2001-12-26 alex #define ERR_NOMOTD "422"
154 574ae82c 2001-12-26 alex #define ERR_NOMOTD_MSG ERR_NOMOTD" %s :MOTD file is missing"
155 574ae82c 2001-12-26 alex
156 a0fd570d 2001-12-23 alex #define ERR_ERRONEUSNICKNAME "432"
157 e0c5ecee 2001-12-26 alex #define ERR_ERRONEUSNICKNAME_MSG ERR_ERRONEUSNICKNAME" %s %s :Erroneous nickname"
158 a0fd570d 2001-12-23 alex
159 b02f6b42 2001-12-25 alex #define ERR_NICKNAMEINUSE "433"
160 e0c5ecee 2001-12-26 alex #define ERR_NICKNAMEINUSE_MSG ERR_NICKNAMEINUSE" %s %s :Nickname already in use"
161 b02f6b42 2001-12-25 alex
162 d58e22a3 2002-02-27 alex #define ERR_NOTONCHANNEL "442"
163 d58e22a3 2002-02-27 alex #define ERR_NOTONCHANNEL_MSG ERR_NOTONCHANNEL" %s %s :You are not on that channel"
164 d58e22a3 2002-02-27 alex
165 5a8a7895 2002-02-17 alex #define ERR_NOTREGISTERED "451"
166 5a8a7895 2002-02-17 alex #define ERR_NOTREGISTERED_MSG ERR_NOTREGISTERED" %s :Connection not registered"
167 5a8a7895 2002-02-17 alex #define ERR_NOTREGISTEREDSERVER_MSG ERR_NOTREGISTERED" %s :Connection not registered as server link"
168 5a8a7895 2002-02-17 alex
169 a0fd570d 2001-12-23 alex #define ERR_NEEDMOREPARAMS "461"
170 e0c5ecee 2001-12-26 alex #define ERR_NEEDMOREPARAMS_MSG ERR_NEEDMOREPARAMS" %s %s :Syntax error"
171 a0fd570d 2001-12-23 alex
172 a0fd570d 2001-12-23 alex #define ERR_ALREADYREGISTRED "462"
173 e0c5ecee 2001-12-26 alex #define ERR_ALREADYREGISTRED_MSG ERR_ALREADYREGISTRED" %s :Connection already registered"
174 a0fd570d 2001-12-23 alex
175 804b1ec4 2001-12-31 alex #define ERR_PASSWDMISMATCH "464"
176 804b1ec4 2001-12-31 alex #define ERR_PASSWDMISMATCH_MSG ERR_PASSWDMISMATCH" %s: Invalid password"
177 804b1ec4 2001-12-31 alex
178 804b1ec4 2001-12-31 alex #define ERR_NOPRIVILEGES "481"
179 804b1ec4 2001-12-31 alex #define ERR_NOPRIVILEGES_MSG ERR_NOPRIVILEGES" %s :Permission denied"
180 804b1ec4 2001-12-31 alex
181 207937da 2002-02-11 alex #define ERR_CHANOPRIVSNEEDED "482"
182 207937da 2002-02-11 alex #define ERR_CHANOPRIVSNEEDED_MSG ERR_CHANOPRIVSNEEDED" %s %s :You are not channel operator"
183 207937da 2002-02-11 alex
184 5c806927 2001-12-29 alex #define ERR_RESTRICTED "484"
185 5c806927 2001-12-29 alex #define ERR_RESTRICTED_MSG ERR_RESTRICTED" %s :Your connection is restricted"
186 a0fd570d 2001-12-23 alex
187 804b1ec4 2001-12-31 alex #define ERR_NOOPERHOST "491"
188 804b1ec4 2001-12-31 alex #define ERR_NOOPERHOST_MSG ERR_NOOPERHOST" %s :Not configured for your host"
189 804b1ec4 2001-12-31 alex
190 5a8a7895 2002-02-17 alex
191 5c806927 2001-12-29 alex #define ERR_UMODEUNKNOWNFLAG "501"
192 1b1b718e 2002-02-17 alex #define ERR_UMODEUNKNOWNFLAG_MSG ERR_UMODEUNKNOWNFLAG" %s :Unknown mode"
193 1b1b718e 2002-02-17 alex #define ERR_UMODEUNKNOWNFLAG2_MSG ERR_UMODEUNKNOWNFLAG" %s :Unknown mode \"%c%c\""
194 5c806927 2001-12-29 alex
195 5c806927 2001-12-29 alex #define ERR_USERSDONTMATCH "502"
196 5c806927 2001-12-29 alex #define ERR_USERSDONTMATCH_MSG ERR_USERSDONTMATCH" %s :Can't set/get mode for other users"
197 5c806927 2001-12-29 alex
198 5c806927 2001-12-29 alex
199 a0fd570d 2001-12-23 alex #endif
200 a0fd570d 2001-12-23 alex
201 a0fd570d 2001-12-23 alex
202 a0fd570d 2001-12-23 alex /* -eof- */