File: hooks.txt

package info (click to toggle)
ircii-pana 1%3A1.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 14,048 kB
  • ctags: 14,567
  • sloc: ansic: 130,654; sql: 6,041; makefile: 4,313; cpp: 1,270; tcl: 1,230; sh: 638; java: 151
file content (338 lines) | stat: -rw-r--r-- 5,274 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
This is some information provided for script writers about the extra hooks
that BitchX provides for you. You can either use these or not depending on
what you like to see. This list is being added to and I will try and keep
this file updated for them. Thanks to "suicide" for pushing me into this :)
suicide writes the Whirred script for BitchX

MSGLOG  returns  
	timestr 
	type 
	from 
	what they sent.
	-or-
	timestr
	"On"
	fully expanded filename
	-or-
	timestr
	"Off"

BANS returns 
	the number we consider this to be
	channel
	the ban itself
	who set it.
BANS_HEADER

CDCC_PREPACK
CDCC_POSTPACK
	type   NOTICE or PRIVMSG
	from
	nickname
	active dcc's
	send limit
	number in the queue
	queue limit
	max dcc rate out
	number of bytes sent in this session.
	max dcc rate in
	number of bytes received in this session.
	total size of the packs we're offering
	minimum dcc speed we require.

CDCC_PACK
	type    NOTICE or PRIVMSG
	channel
	num of this pack
	number of files in this pack
	size of this pack
	number of gets for this pack
	the description.

CDCC_NOTE
	type   NOTICE or PRIVMSG
	channel
	note for this package

CDCC_QUEUE
	nick
	time
	pack num
	number of files
	description

BOT_LIST
	Auto op
	protected
	nick
	channels comma separated.
	host
BOTLIST_HEADER

CHANNEL_SYNCH
	channel
	time to join

KICK_LIST
	who
	from
	channel
	comment
DCC_HEADER      /* display before DCC_STAT* */
	"Dccnum"
	"type"
	"num"
	"status"
	"K/s"
	"File"
	"Encrypt"
DCC_POST        /* display after DCC_STAT*  */
	"Dccnum"
	"type"
	"num"
	"status"
	"K/s"
	"File"
	"Encrypt"

DCC_STAT
	/* this hook displays only dcc like chat's raw etc */
	number
	type
	user
	status
	"N/A"
	Description
	"E" for encrypted or nothing.

DCC_STATF
	/* this hook should only display files being transfered */
	Same as above.
	except kilobytes instead of "N/A"

DCC_STATF1
	percentage of file transfer'd
	bytes transferred.
	filesize
	minutes
	seconds

DCC_TRANSFER_STAT
	/* for /dcc stats command */
	bytes in
	max rate in
	min rate in
	bytes out
	max rate out
	min rate out
	number of dcc's
	active dcc's
	send limit
	Dcc Auto get "On" or "Off"
	show dcc paths "On" or "Off"
	Dcc quiet mode "On" or "Off"
	Dcc overwrite mode "On" or "Off"

JOIN_ME
	channel we just joined.
	/* useful for setting individual channel cset's */
LLOOK_JOIN
	name of server
	name of server link
	hopcount

LLOOK_ADDED
	name of server
	name of server link
	hopcount

LLOOK_SPLIT
	name of server
	name of server link
	hopcount

STAT_HEADER
	Nick
	Dop
	kicks
	nicks
	publics

STAT
	nick
	dop count
	kick count
	nick change count
	public count

USERS_HEADER
	Level
	Auto op
	protection
	Channel
	Nick
	+o
	UserHost

USERS
	Users level in our userlist
	Auto op ?
	Protect ?
	Channel/Channels comma separated.
	nickname
	Hostname
	chanop ? '@' :''

USERLIST
	Level
	Aop
	Prot
	nick
	host
	channel(s) comma separated.
	Password
USERLIST_HEADER

NOTIFY_SIGNOFF_UH
	Nick
	username
	hostname

NOTIFY_SIGNON_UH
	Nick
	Username
	Hostname

SAVEFILE
	Userlist and count
	-or-
	ShitList and count
	-or-
	AutoJoin and count
	-or-
	BotList and count
	-or-
	Notify and count
	-or-
	Idle and count
	-or-
	BanWord and count
		
SAVEFILEPOST
SAVEFILEPRE
	name of file we are saving to
	expanded name of file.

SERVER_NOTICE_FAKES
SERVER_NOTICE_FAKES_MYCHANNEL
SERVER_NOTICE_FOREIGN_KILL
SERVER_NOTICE_KILL
SERVER_NOTICE_LOCAL_KILL
SERVER_NOTICE_SERVER_KILL
	for nickname
	from who
	reason
	server
	other
	/* note some of these depend on /set's being on in order to provide
	   the information. SHOW_UNAUTH's SHOW_FAKES, SHOW_SERVER_KILLS,
	   SHOW_SERVER_CRAP in particular.
	 */

SERVER_NOTICE
	depends on /set SHOW_SERVER_CRAP on/off
	from nick
	line to display

SHITLIST
	level of shit to apply
	uh filter 
	channel(s) comma separated
	reason for shitlist
SHITLIST_HEADER

SHOWIDLE_HEADER
	channel
	idle time allowed

SHOWIDLE
	nick
	host
	userlevel in the userlist
	idle time

CHANNEL_STATS (32 parameters)
	channel
	complete date time in Mon Jun 10 01:20:03 1996 format. channelcreation
	time on channel in 0d  0h  0m 20s format
	mem usage total size
	mem used by nicklist
	mem used by channellist itself
	mem used by banlist
	stats_ops
	stats_dops
	stats_bans
	stats_unbans
	stats_ops
	stats_dops
	stats_bans
	stats_unbans
	stats_signoffs
	stats_joins
	totalbans
	maxbans
	stats_sops
	stats_sdops
	stats_sbans
	stats_sunbans
	usershere
	usersaway
	chanops
	chanunop
	totalnicks
	maxnicks
	numircops
	ircops 		list of nicks that varies.

USAGE   /* note still experimenting with this particular hook which may 
	   change at any time */
	command
	usage of command

DESYNC_MESSAGE
	channel
	server

HELPSUBJECT /* output from /chelp */
	name
	output

HELPTOPIC /* output from /chelp */
	name

WHOLEFT /* this list is expired after 20 minutes for those on the userlist
		and 10 minutes on the regular list. */
	nick
	userhost
	channel
	seconds since split
	their server
	my server
WHOLEFT_HEADER

USERS_SERVER
	nick
	server
USERS_SERVER_HEADER

AR_REPLY /* when the user presses ^] this hook is called with auto_reply
            nick to use passed to it. */
	nick 

CLONE_READ
	/* When information is ready on a socket this hook is called once
	   until $readsocket() is used.
        */
        socket number
        server name
        port