ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/vendor/pxys2-2.0.0/pxyservd/src/irc_msg.h
Revision: 3252
Committed: Wed Apr 2 20:41:43 2014 UTC (11 years, 4 months ago) by michael
Content type: text/x-chdr
File size: 11954 byte(s)
Log Message:
- Imported pxys2-2.0.0

File Contents

# User Rev Content
1 michael 3252 /* IRC - Internet Relay Chat, include/msg.h
2     * Copyright (C) 1990 Jarkko Oikarinen and
3     * University of Oulu, Computing Center
4     *
5     * [taken from Undernet ircd]
6     * This file is part of pxyservd (from pxys)
7     *
8     * This program is free software; you can redistribute it and/or
9     * modify it under the terms of the GNU General Public License
10     * as published by the Free Software Foundation; either version 2
11     * of the License, or (at your option) any later version.
12     *
13     * This program is distributed in the hope that it will be useful,
14     * but WITHOUT ANY WARRANTY; without even the implied warranty of
15     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16     * GNU General Public License for more details.
17     *
18     * You should have received a copy of the GNU General Public License
19     * along with this program; if not, write to the Free Software
20     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21     *
22     */
23     #ifndef INCLUDED_MSG_H
24     #define INCLUDED_MSG_H
25    
26     /*
27     * General defines
28     */
29    
30     #define MAXPARA 15
31    
32     /*-----------------------------------------------------------------------------
33     * Macros
34     */
35    
36     /*
37     * Tokenization:
38     * Each command must have a TOK_COMMAND and MSG_COMMAND definition.
39     * If you don't want one or the other, make them the same.
40     * Also each command has a "msgclass" used for debugging purposes.
41     */
42    
43     /* *INDENT-OFF* */
44    
45     #define MSG_PRIVATE "PRIVMSG" /* PRIV */
46     #define TOK_PRIVATE "P"
47     #define CMD_PRIVATE MSG_PRIVATE, TOK_PRIVATE
48    
49     #define MSG_WHO "WHO" /* WHO -> WHOC */
50     #define TOK_WHO "H"
51     #define CMD_WHO MSG_WHO, TOK_WHO
52    
53     #define MSG_WHOIS "WHOIS" /* WHOI */
54     #define TOK_WHOIS "W"
55     #define CMD_WHOIS MSG_WHOIS, TOK_WHOIS
56    
57     #define MSG_WHOWAS "WHOWAS" /* WHOW */
58     #define TOK_WHOWAS "X"
59     #define CMD_WHOWAS MSG_WHOWAS, TOK_WHOWAS
60    
61     #define MSG_USER "USER" /* USER */
62     #define TOK_USER "USER"
63     #define CMD_USER MSG_USER, TOK_USER
64    
65     #define MSG_NICK "NICK" /* NICK */
66     #define TOK_NICK "N"
67     #define CMD_NICK MSG_NICK, TOK_NICK
68    
69     #define MSG_SERVER "SERVER" /* SERV */
70     #define TOK_SERVER "S"
71     #define CMD_SERVER MSG_SERVER, TOK_SERVER
72    
73     #define MSG_LIST "LIST" /* LIST */
74     #define TOK_LIST "LIST"
75     #define CMD_LIST MSG_LIST, TOK_LIST
76    
77     #define MSG_TOPIC "TOPIC" /* TOPI */
78     #define TOK_TOPIC "T"
79     #define CMD_TOPIC MSG_TOPIC, TOK_TOPIC
80    
81     #define MSG_INVITE "INVITE" /* INVI */
82     #define TOK_INVITE "I"
83     #define CMD_INVITE MSG_INVITE, TOK_INVITE
84    
85     #define MSG_VERSION "VERSION" /* VERS */
86     #define TOK_VERSION "V"
87     #define CMD_VERSION MSG_VERSION, TOK_VERSION
88    
89     #define MSG_QUIT "QUIT" /* QUIT */
90     #define TOK_QUIT "Q"
91     #define CMD_QUIT MSG_QUIT, TOK_QUIT
92    
93     #define MSG_SQUIT "SQUIT" /* SQUI */
94     #define TOK_SQUIT "SQ"
95     #define CMD_SQUIT MSG_SQUIT, TOK_SQUIT
96    
97     #define MSG_KILL "KILL" /* KILL */
98     #define TOK_KILL "D"
99     #define CMD_KILL MSG_KILL, TOK_KILL
100    
101     #define MSG_INFO "INFO" /* INFO */
102     #define TOK_INFO "F"
103     #define CMD_INFO MSG_INFO, TOK_INFO
104    
105     #define MSG_LINKS "LINKS" /* LINK */
106     #define TOK_LINKS "LI"
107     #define CMD_LINKS MSG_LINKS, TOK_LINKS
108    
109     #define MSG_STATS "STATS" /* STAT */
110     #define TOK_STATS "R"
111     #define CMD_STATS MSG_STATS, TOK_STATS
112    
113     #define MSG_HELP "HELP" /* HELP */
114     #define TOK_HELP "HELP"
115     #define CMD_HELP MSG_HELP, TOK_HELP
116    
117     #define MSG_ERROR "ERROR" /* ERRO */
118     #define TOK_ERROR "Y"
119     #define CMD_ERROR MSG_ERROR, TOK_ERROR
120    
121     #define MSG_AWAY "AWAY" /* AWAY */
122     #define TOK_AWAY "A"
123     #define CMD_AWAY MSG_AWAY, TOK_AWAY
124    
125     #define MSG_CONNECT "CONNECT" /* CONN */
126     #define TOK_CONNECT "CO"
127     #define CMD_CONNECT MSG_CONNECT, TOK_CONNECT
128    
129     #define MSG_MAP "MAP" /* MAP */
130     #define TOK_MAP "MAP"
131     #define CMD_MAP MSG_MAP, TOK_MAP
132    
133     #define MSG_PING "PING" /* PING */
134     #define TOK_PING "G"
135     #define CMD_PING MSG_PING, TOK_PING
136    
137     #define MSG_PONG "PONG" /* PONG */
138     #define TOK_PONG "Z"
139     #define CMD_PONG MSG_PONG, TOK_PONG
140    
141     #define MSG_OPER "OPER" /* OPER */
142     #define TOK_OPER "OPER"
143     #define CMD_OPER MSG_OPER, TOK_OPER
144    
145     #define MSG_PASS "PASS" /* PASS */
146     #define TOK_PASS "PA"
147     #define CMD_PASS MSG_PASS, TOK_PASS
148    
149     #define MSG_WALLOPS "WALLOPS" /* WALL */
150     #define TOK_WALLOPS "WA"
151     #define CMD_WALLOPS MSG_WALLOPS, TOK_WALLOPS
152    
153     #define MSG_WALLUSERS "WALLUSERS" /* WALL */
154     #define TOK_WALLUSERS "WU"
155     #define CMD_WALLUSERS MSG_WALLUSERS, TOK_WALLUSERS
156    
157     #define MSG_DESYNCH "DESYNCH" /* DESY */
158     #define TOK_DESYNCH "DS"
159     #define CMD_DESYNCH MSG_DESYNCH, TOK_DESYNCH
160    
161     #define MSG_TIME "TIME" /* TIME */
162     #define TOK_TIME "TI"
163     #define CMD_TIME MSG_TIME, TOK_TIME
164    
165     #define MSG_SETTIME "SETTIME" /* SETT */
166     #define TOK_SETTIME "SE"
167     #define CMD_SETTIME MSG_SETTIME, TOK_SETTIME
168    
169     #define MSG_RPING "RPING" /* RPIN */
170     #define TOK_RPING "RI"
171     #define CMD_RPING MSG_RPING, TOK_RPING
172    
173     #define MSG_RPONG "RPONG" /* RPON */
174     #define TOK_RPONG "RO"
175     #define CMD_RPONG MSG_RPONG, TOK_RPONG
176    
177     #define MSG_NAMES "NAMES" /* NAME */
178     #define TOK_NAMES "E"
179     #define CMD_NAMES MSG_NAMES, TOK_NAMES
180    
181     #define MSG_ADMIN "ADMIN" /* ADMI */
182     #define TOK_ADMIN "AD"
183     #define CMD_ADMIN MSG_ADMIN, TOK_ADMIN
184    
185     #define MSG_TRACE "TRACE" /* TRAC */
186     #define TOK_TRACE "TR"
187     #define CMD_TRACE MSG_TRACE, TOK_TRACE
188    
189     #define MSG_NOTICE "NOTICE" /* NOTI */
190     #define TOK_NOTICE "O"
191     #define CMD_NOTICE MSG_NOTICE, TOK_NOTICE
192    
193     #define MSG_WALLCHOPS "WALLCHOPS" /* WC */
194     #define TOK_WALLCHOPS "WC"
195     #define CMD_WALLCHOPS MSG_WALLCHOPS, TOK_WALLCHOPS
196    
197     #define MSG_WALLVOICES "WALLVOICES" /* WV */
198     #define TOK_WALLVOICES "WV"
199     #define CMD_WALLVOICES MSG_WALLVOICES, TOK_WALLVOICES
200    
201     #define MSG_CPRIVMSG "CPRIVMSG" /* CPRI */
202     #define TOK_CPRIVMSG "CP"
203     #define CMD_CPRIVMSG MSG_CPRIVMSG, TOK_CPRIVMSG
204    
205     #define MSG_CNOTICE "CNOTICE" /* CNOT */
206     #define TOK_CNOTICE "CN"
207     #define CMD_CNOTICE MSG_CNOTICE, TOK_CNOTICE
208    
209     #define MSG_JOIN "JOIN" /* JOIN */
210     #define TOK_JOIN "J"
211     #define CMD_JOIN MSG_JOIN, TOK_JOIN
212    
213     #define MSG_PART "PART" /* PART */
214     #define TOK_PART "L"
215     #define CMD_PART MSG_PART, TOK_PART
216    
217     #define MSG_LUSERS "LUSERS" /* LUSE */
218     #define TOK_LUSERS "LU"
219     #define CMD_LUSERS MSG_LUSERS, TOK_LUSERS
220    
221     #define MSG_MOTD "MOTD" /* MOTD */
222     #define TOK_MOTD "MO"
223     #define CMD_MOTD MSG_MOTD, TOK_MOTD
224    
225     #define MSG_MODE "MODE" /* MODE */
226     #define TOK_MODE "M"
227     #define CMD_MODE MSG_MODE, TOK_MODE
228    
229     #define MSG_KICK "KICK" /* KICK */
230     #define TOK_KICK "K"
231     #define CMD_KICK MSG_KICK, TOK_KICK
232    
233     #define MSG_USERHOST "USERHOST" /* USER -> USRH */
234     #define TOK_USERHOST "USERHOST"
235     #define CMD_USERHOST MSG_USERHOST, TOK_USERHOST
236    
237     #define MSG_USERIP "USERIP" /* USER -> USIP */
238     #define TOK_USERIP "USERIP"
239     #define CMD_USERIP MSG_USERIP, TOK_USERIP
240    
241     #define MSG_ISON "ISON" /* ISON */
242     #define TOK_ISON "ISON"
243     #define CMD_ISON MSG_ISON, TOK_ISON
244    
245     #define MSG_SQUERY "SQUERY" /* SQUE */
246     #define TOK_SQUERY "SQUERY"
247     #define CMD_SQUERY MSG_SQUERY, TOK_SQUERY
248    
249     #define MSG_SERVLIST "SERVLIST" /* SERV -> SLIS */
250     #define TOK_SERVLIST "SERVSET"
251     #define CMD_SERVLIST MSG_SERVLIST, TOK_SERVLIST
252    
253     #define MSG_SERVSET "SERVSET" /* SERV -> SSET */
254     #define TOK_SERVSET "SERVSET"
255     #define CMD_SERVSET MSG_SERVSET, TOK_SERVSET
256    
257     #define MSG_REHASH "REHASH" /* REHA */
258     #define TOK_REHASH "REHASH"
259     #define CMD_REHASH MSG_REHASH, TOK_REHASH
260    
261     #define MSG_RESTART "RESTART" /* REST */
262     #define TOK_RESTART "RESTART"
263     #define CMD_RESTART MSG_RESTART, TOK_RESTART
264    
265     #define MSG_CLOSE "CLOSE" /* CLOS */
266     #define TOK_CLOSE "CLOSE"
267     #define CMD_CLOSE MSG_CLOSE, TOK_CLOSE
268    
269     #define MSG_DIE "DIE" /* DIE */
270     #define TOK_DIE "DIE"
271     #define CMD_DIE MSG_DIE, TOK_DIE
272    
273     #define MSG_HASH "HASH" /* HASH */
274     #define TOK_HASH "HASH"
275     #define CMD_HASH MSG_HASH, TOK_HASH
276    
277     #define MSG_DNS "DNS" /* DNS -> DNSS */
278     #define TOK_DNS "DNS"
279     #define CMD_DNS MSG_DNS, TOK_DNS
280    
281     #define MSG_SILENCE "SILENCE" /* SILE */
282     #define TOK_SILENCE "U"
283     #define CMD_SILENCE MSG_SILENCE, TOK_SILENCE
284    
285     #define MSG_GLINE "GLINE" /* GLIN */
286     #define TOK_GLINE "GL"
287     #define CMD_GLINE MSG_GLINE, TOK_GLINE
288    
289     #define MSG_BURST "BURST" /* BURS */
290     #define TOK_BURST "B"
291     #define CMD_BURST MSG_BURST, TOK_BURST
292    
293     #define MSG_UPING "UPING" /* UPIN */
294     #define TOK_UPING "UP"
295     #define CMD_UPING MSG_UPING, TOK_UPING
296    
297     #define MSG_CREATE "CREATE" /* CREA */
298     #define TOK_CREATE "C"
299     #define CMD_CREATE MSG_CREATE, TOK_CREATE
300    
301     #define MSG_DESTRUCT "DESTRUCT" /* DEST */
302     #define TOK_DESTRUCT "DE"
303     #define CMD_DESTRUCT MSG_DESTRUCT, TOK_DESTRUCT
304    
305     #define MSG_END_OF_BURST "END_OF_BURST" /* END_ */
306     #define TOK_END_OF_BURST "EB"
307     #define CMD_END_OF_BURST MSG_END_OF_BURST, TOK_END_OF_BURST
308    
309     #define MSG_END_OF_BURST_ACK "EOB_ACK" /* EOB_ */
310     #define TOK_END_OF_BURST_ACK "EA"
311     #define CMD_END_OF_BURST_ACK MSG_END_OF_BURST_ACK, TOK_END_OF_BURST_ACK
312    
313     #define MSG_PROTO "PROTO" /* PROTO */
314     #define TOK_PROTO "PROTO" /* PROTO */
315     #define CMD_PROTO MSG_PROTO, TOK_PROTO
316    
317     #define MSG_JUPE "JUPE" /* JUPE */
318     #define TOK_JUPE "JU"
319     #define CMD_JUPE MSG_JUPE, TOK_JUPE
320    
321     #define MSG_OPMODE "OPMODE" /* OPMO */
322     #define TOK_OPMODE "OM"
323     #define CMD_OPMODE MSG_OPMODE, TOK_OPMODE
324    
325     #define MSG_CLEARMODE "CLEARMODE" /* CLMO */
326     #define TOK_CLEARMODE "CM"
327     #define CMD_CLEARMODE MSG_CLEARMODE, TOK_CLEARMODE
328    
329     #define MSG_ACCOUNT "ACCOUNT" /* ACCO */
330     #define TOK_ACCOUNT "AC"
331     #define CMD_ACCOUNT MSG_ACCOUNT, TOK_ACCOUNT
332    
333     #define MSG_ASLL "ASLL" /* ASLL */
334     #define TOK_ASLL "LL"
335     #define CMD_ASLL MSG_ASLL, TOK_ASLL
336    
337     #define MSG_POST "POST" /* POST */
338     #define TOK_POST "POST"
339    
340     #define MSG_SET "SET" /* SET */
341     #define TOK_SET "SET"
342    
343     #define MSG_RESET "RESET" /* RESE */
344     #define TOK_RESET "RESET"
345    
346     #define MSG_GET "GET" /* GET */
347     #define TOK_GET "GET"
348    
349     #define MSG_PRIVS "PRIVS" /* PRIV */
350     #define TOK_PRIVS "PRIVS"
351    
352    
353     #endif /* INCLUDED_MSG_H */