Handle numeric 900
[rofl0r-ixchat.git] / plugins / tcl / printevents.h
blobd4ad5d0d16a1cdb9749a04e08690fd33a06f8b25
1 /***************************************************************************
2 printevents.h - TCL plugin header file
3 -------------------------------------------------
4 begin : Sat Nov 9 17:31:20 MST 2002
5 copyright : Copyright 2002-2007 Daniel P. Stasinski
6 copyright : Copyright 2002-2012 Daniel P. Stasinski
7 email : daniel@GenericInbox.com
8 ***************************************************************************/
10 /***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
19 typedef struct {
20 char *event;
21 char *emit;
22 int argc;
23 xchat_hook *hook;
24 } print_event;
26 enum
28 CHAT,
29 XC_APPFOCUS,
30 XC_TABOPEN,
31 XC_TABCLOSE,
32 XC_TABFOCUS,
33 XC_KEYPRESS,
34 XC_ADDNOTIFY,
35 XC_BANLIST,
36 XC_BANNED,
37 XC_BEEP,
38 XC_CHANGENICK,
39 XC_CHANACTION,
40 XC_HCHANACTION,
41 XC_CHANBAN,
42 XC_CHANDATE,
43 XC_CHANDEHOP,
44 XC_CHANDEOP,
45 XC_CHANDEVOICE,
46 XC_CHANEXEMPT,
47 XC_CHANHOP,
48 XC_CHANINVITE,
49 XC_CHANLISTHEAD,
50 XC_CHANMSG,
51 XC_CHANMODEGEN,
52 XC_CHANMODES,
53 XC_HCHANMSG,
54 XC_CHANNOTICE,
55 XC_CHANOP,
56 XC_CHANRMEXEMPT,
57 XC_CHANRMINVITE,
58 XC_CHANRMKEY,
59 XC_CHANRMLIMIT,
60 XC_CHANSETKEY,
61 XC_CHANSETLIMIT,
62 XC_CHANUNBAN,
63 XC_CHANVOICE,
64 XC_CONNECTED,
65 XC_CONNECT,
66 XC_CONNFAIL,
67 XC_CTCPGEN,
68 XC_CTCPGENC,
69 XC_CTCPSEND,
70 XC_CTCPSND,
71 XC_CTCPSNDC,
72 XC_DCCCHATABORT,
73 XC_DCCCONCHAT,
74 XC_DCCCHATF,
75 XC_DCCCHATOFFER,
76 XC_DCCCHATOFFERING,
77 XC_DCCCHATREOFFER,
78 XC_DCCCONFAIL,
79 XC_DCCGENERICOFFER,
80 XC_DCCHEAD,
81 XC_MALFORMED,
82 XC_DCCOFFER,
83 XC_DCCIVAL,
84 XC_DCCRECVABORT,
85 XC_DCCRECVCOMP,
86 XC_DCCCONRECV,
87 XC_DCCRECVERR,
88 XC_DCCFILEERR,
89 XC_DCCRENAME,
90 XC_DCCRESUMEREQUEST,
91 XC_DCCSENDABORT,
92 XC_DCCSENDCOMP,
93 XC_DCCCONSEND,
94 XC_DCCSENDFAIL,
95 XC_DCCSENDOFFER,
96 XC_DCCSTALL,
97 XC_DCCTOUT,
98 XC_DELNOTIFY,
99 XC_DISCON,
100 XC_FOUNDIP,
101 XC_GENMSG,
102 XC_IGNOREADD,
103 XC_IGNORECHANGE,
104 XC_IGNOREFOOTER,
105 XC_IGNOREHEADER,
106 XC_IGNOREREMOVE,
107 XC_IGNOREEMPTY,
108 XC_INVITE,
109 XC_INVITED,
110 XC_JOIN,
111 XC_KEYWORD,
112 XC_KICK,
113 XC_KILL,
114 XC_MSGSEND,
115 XC_MOTD,
116 XC_MOTDSKIP,
117 XC_NICKCLASH,
118 XC_NICKFAIL,
119 XC_NODCC,
120 XC_NOCHILD,
121 XC_NOTICE,
122 XC_NOTICESEND,
123 XC_NOTIFYEMPTY,
124 XC_NOTIFYHEAD,
125 XC_NOTIFYNUMBER,
126 XC_NOTIFYOFFLINE,
127 XC_NOTIFYONLINE,
128 XC_OPENDIALOG,
129 XC_PART,
130 XC_PARTREASON,
131 XC_PINGREP,
132 XC_PINGTIMEOUT,
133 XC_PRIVMSG,
134 XC_DPRIVMSG,
135 XC_ALREADYPROCESS,
136 XC_QUIT,
137 XC_RAWMODES,
138 XC_WALLOPS,
139 XC_RESOLVINGUSER,
140 XC_SERVERCONNECTED,
141 XC_SERVERERROR,
142 XC_SERVERLOOKUP,
143 XC_SERVNOTICE,
144 XC_SERVTEXT,
145 XC_STOPCONNECT,
146 XC_TOPIC,
147 XC_NEWTOPIC,
148 XC_TOPICDATE,
149 XC_UKNHOST,
150 XC_USERLIMIT,
151 XC_USERSONCHAN,
152 XC_WHOIS_AUTH,
153 XC_WHOIS5,
154 XC_WHOIS2,
155 XC_WHOIS6,
156 XC_WHOIS_ID,
157 XC_WHOIS4,
158 XC_WHOIS4T,
159 XC_WHOIS1,
160 XC_WHOIS_REALHOST,
161 XC_WHOIS3,
162 XC_WHOIS_SPECIAL,
163 XC_UJOIN,
164 XC_UKICK,
165 XC_UPART,
166 XC_UPARTREASON,
167 XC_UACTION,
168 XC_UINVITE,
169 XC_UCHANMSG,
170 XC_UCHANGENICK,
171 XC_SIZE
174 static print_event xc[] = {
175 { "CHAT", "DCC Chat Text", -1, NULL },
176 { "XC_APPFOCUS", "Focus Window", -3, NULL },
177 { "XC_TABOPEN", "Open Context", -2, NULL },
178 { "XC_TABCLOSE", "Close Context", -2, NULL },
179 { "XC_TABFOCUS", "Focus Tab", -2, NULL },
180 { "XC_KEYPRESS", "Key Press", 4, NULL },
181 { "XC_ADDNOTIFY", "Add Notify", 1, NULL },
182 { "XC_BANLIST", "Ban List", 4, NULL },
183 { "XC_BANNED", "Banned", 1, NULL },
184 { "XC_BEEP", "Beep", 0, NULL },
185 { "XC_CHANGENICK", "Change Nick", 2, NULL },
186 { "XC_CHANACTION", "Channel Action", 3, NULL },
187 { "XC_HCHANACTION", "Channel Action Hilight", 3, NULL },
188 { "XC_CHANBAN", "Channel Ban", 2, NULL },
189 { "XC_CHANDATE", "Channel Creation", 2, NULL },
190 { "XC_CHANDEHOP", "Channel DeHalfOp", 2, NULL },
191 { "XC_CHANDEOP", "Channel DeOp", 2, NULL },
192 { "XC_CHANDEVOICE", "Channel DeVoice", 2, NULL },
193 { "XC_CHANEXEMPT", "Channel Exempt", 2, NULL },
194 { "XC_CHANHOP", "Channel Half-Operator", 2, NULL },
195 { "XC_CHANINVITE", "Channel INVITE", 2, NULL },
196 { "XC_CHANLISTHEAD", "Channel List", 0, NULL },
197 { "XC_CHANMSG", "Channel Message", 4, NULL },
198 { "XC_CHANMODEGEN", "Channel Mode Generic", 4, NULL },
199 { "XC_CHANMODES", "Channel Modes", 2, NULL },
200 { "XC_HCHANMSG", "Channel Msg Hilight", 4, NULL },
201 { "XC_CHANNOTICE", "Channel Notice", 3, NULL },
202 { "XC_CHANOP", "Channel Operator", 2, NULL },
203 { "XC_CHANRMEXEMPT", "Channel Remove Exempt", 2, NULL },
204 { "XC_CHANRMINVITE", "Channel Remove Invite", 2, NULL },
205 { "XC_CHANRMKEY", "Channel Remove Keyword", 1, NULL },
206 { "XC_CHANRMLIMIT", "Channel Remove Limit", 1, NULL },
207 { "XC_CHANSETKEY", "Channel Set Key", 2, NULL },
208 { "XC_CHANSETLIMIT", "Channel Set Limit", 2, NULL },
209 { "XC_CHANUNBAN", "Channel UnBan", 2, NULL },
210 { "XC_CHANVOICE", "Channel Voice", 2, NULL },
211 { "XC_CONNECTED", "Connected", 0, NULL },
212 { "XC_CONNECT", "Connecting", 3, NULL },
213 { "XC_CONNFAIL", "Connection Failed", 1, NULL },
214 { "XC_CTCPGEN", "CTCP Generic", 2, NULL },
215 { "XC_CTCPGENC", "CTCP Generic to Channel", 3, NULL },
216 { "XC_CTCPSEND", "CTCP Send", 2, NULL },
217 { "XC_CTCPSND", "CTCP Sound", 2, NULL },
218 { "XC_CTCPSNDC", "CTCP Sound to Channel", 3, NULL },
219 { "XC_DCCCHATABORT", "DCC CHAT Abort", 1, NULL },
220 { "XC_DCCCONCHAT", "DCC CHAT Connect", 2, NULL },
221 { "XC_DCCCHATF", "DCC CHAT Failed", 4, NULL },
222 { "XC_DCCCHATOFFER", "DCC CHAT Offer", 1, NULL },
223 { "XC_DCCCHATOFFERING", "DCC CHAT Offering", 1, NULL },
224 { "XC_DCCCHATREOFFER", "DCC CHAT Reoffer", 1, NULL },
225 { "XC_DCCCONFAIL", "DCC Conection Failed", 3, NULL },
226 { "XC_DCCGENERICOFFER", "DCC Generic Offer", 2, NULL },
227 { "XC_DCCHEAD", "DCC Header", 0, NULL },
228 { "XC_MALFORMED", "DCC Malformed", 2, NULL },
229 { "XC_DCCOFFER", "DCC Offer", 3, NULL },
230 { "XC_DCCIVAL", "DCC Offer Not Valid", 0, NULL },
231 { "XC_DCCRECVABORT", "DCC RECV Abort", 2, NULL },
232 { "XC_DCCRECVCOMP", "DCC RECV Complete", 4, NULL },
233 { "XC_DCCCONRECV", "DCC RECV Connect", 3, NULL },
234 { "XC_DCCRECVERR", "DCC RECV Failed", 4, NULL },
235 { "XC_DCCFILEERR", "DCC RECV File Open Error", 2, NULL },
236 { "XC_DCCRENAME", "DCC Rename", 2, NULL },
237 { "XC_DCCRESUMEREQUEST", "DCC RESUME Request", 3, NULL },
238 { "XC_DCCSENDABORT", "DCC SEND Abort", 2, NULL },
239 { "XC_DCCSENDCOMP", "DCC SEND Complete", 3, NULL },
240 { "XC_DCCCONSEND", "DCC SEND Connect", 3, NULL },
241 { "XC_DCCSENDFAIL", "DCC SEND Failed", 3, NULL },
242 { "XC_DCCSENDOFFER", "DCC SEND Offer", 4, NULL },
243 { "XC_DCCSTALL", "DCC Stall", 3, NULL },
244 { "XC_DCCTOUT", "DCC Timeout", 3, NULL },
245 { "XC_DELNOTIFY", "Delete Notify", 1, NULL },
246 { "XC_DISCON", "Disconnected", 1, NULL },
247 { "XC_FOUNDIP", "Found IP", 1, NULL },
248 { "XC_GENMSG", "Generic Message", 2, NULL },
249 { "XC_IGNOREADD", "Ignore Add", 1, NULL },
250 { "XC_IGNORECHANGE", "Ignore Changed", 1, NULL },
251 { "XC_IGNOREFOOTER", "Ignore Footer", 0, NULL },
252 { "XC_IGNOREHEADER", "Ignore Header", 0, NULL },
253 { "XC_IGNOREREMOVE", "Ignore Remove", 1, NULL },
254 { "XC_IGNOREEMPTY", "Ignorelist Empty", 0, NULL },
255 { "XC_INVITE", "Invite", 1, NULL },
256 { "XC_INVITED", "Invited", 3, NULL },
257 { "XC_JOIN", "Join", 3, NULL },
258 { "XC_KEYWORD", "Keyword", 1, NULL },
259 { "XC_KICK", "Kick", 4, NULL },
260 { "XC_KILL", "Killed", 2, NULL },
261 { "XC_MSGSEND", "Message Send", 2, NULL },
262 { "XC_MOTD", "Motd", 1, NULL },
263 { "XC_MOTDSKIP", "MOTD Skipped", 0, NULL },
264 { "XC_NICKCLASH", "Nick Clash", 2, NULL },
265 { "XC_NICKFAIL", "Nick Failed", 0, NULL },
266 { "XC_NODCC", "No DCC", 0, NULL },
267 { "XC_NOCHILD", "No Running Process", 0, NULL },
268 { "XC_NOTICE", "Notice", 2, NULL },
269 { "XC_NOTICESEND", "Notice Send", 2, NULL },
270 { "XC_NOTIFYEMPTY", "Notify Empty", 0, NULL },
271 { "XC_NOTIFYHEAD", "Notify Header", 0, NULL },
272 { "XC_NOTIFYNUMBER", "Notify Number", 1, NULL },
273 { "XC_NOTIFYOFFLINE", "Notify Offline", 3, NULL },
274 { "XC_NOTIFYONLINE", "Notify Online", 3, NULL },
275 { "XC_OPENDIALOG", "Open Dialog", 0, NULL },
276 { "XC_PART", "Part", 3, NULL },
277 { "XC_PARTREASON", "Part with Reason", 4, NULL },
278 { "XC_PINGREP", "Ping Reply", 2, NULL },
279 { "XC_PINGTIMEOUT", "Ping Timeout", 1, NULL },
280 { "XC_PRIVMSG", "Private Message", 3, NULL },
281 { "XC_DPRIVMSG", "Private Message to Dialog", 3, NULL },
282 { "XC_ALREADYPROCESS", "Process Already Running", 0, NULL },
283 { "XC_QUIT", "Quit", 3, NULL },
284 { "XC_RAWMODES", "Raw Modes", 2, NULL },
285 { "XC_WALLOPS", "Receive Wallops", 2, NULL },
286 { "XC_RESOLVINGUSER", "Resolving User", 2, NULL },
287 { "XC_SERVERCONNECTED", "Server Connected", 0, NULL },
288 { "XC_SERVERERROR", "Server Error", 1, NULL },
289 { "XC_SERVERLOOKUP", "Server Lookup", 1, NULL },
290 { "XC_SERVNOTICE", "Server Notice", 2, NULL },
291 { "XC_SERVTEXT", "Server Text", 2, NULL },
292 { "XC_STOPCONNECT", "Stop Connection", 1, NULL },
293 { "XC_TOPIC", "Topic", 2, NULL },
294 { "XC_NEWTOPIC", "Topic Change", 3, NULL },
295 { "XC_TOPICDATE", "Topic Creation", 3, NULL },
296 { "XC_UKNHOST", "Unknown Host", 0, NULL },
297 { "XC_USERLIMIT", "User Limit", 1, NULL },
298 { "XC_USERSONCHAN", "Users On Channel", 2, NULL },
299 { "XC_WHOIS_AUTH", "WhoIs Authenticated", 3, NULL },
300 { "XC_WHOIS5", "WhoIs Away Line", 2, NULL },
301 { "XC_WHOIS2", "WhoIs Channel/Oper Line", 2, NULL },
302 { "XC_WHOIS6", "WhoIs End", 1, NULL },
303 { "XC_WHOIS_ID", "WhoIs Identified", 2, NULL },
304 { "XC_WHOIS4", "WhoIs Idle Line", 2, NULL },
305 { "XC_WHOIS4T", "WhoIs Idle Line with Signon", 3, NULL },
306 { "XC_WHOIS1", "WhoIs Name Line", 4, NULL },
307 { "XC_WHOIS_REALHOST", "WhoIs Real Host", 4, NULL },
308 { "XC_WHOIS3", "WhoIs Server Line", 2, NULL },
309 { "XC_WHOIS_SPECIAL", "WhoIs Special", 3, NULL },
310 { "XC_UJOIN", "You Join", 3, NULL },
311 { "XC_UKICK", "You Kicked", 4, NULL },
312 { "XC_UPART", "You Part", 3, NULL },
313 { "XC_UPARTREASON", "You Part with Reason", 4, NULL },
314 { "XC_UACTION", "Your Action", 3, NULL },
315 { "XC_UINVITE", "Your Invitation", 3, NULL },
316 { "XC_UCHANMSG", "Your Message", 4, NULL },
317 { "XC_UCHANGENICK", "Your Nick Changing", 2, NULL }