-
Notifications
You must be signed in to change notification settings - Fork 3
/
TRIGGERS
50 lines (35 loc) · 1.62 KB
/
TRIGGERS
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
Trigger API.
Tcl functions (usually loaded from your .icbrc file)
===========================================================================
proc Trig_personalmsg {person} {
global theMessage
...
}
This function gets called when a personal message (/m) gets sent
to you. Trig_personalmsg gets the sender's nickname passed in $person,
and a read-only copy of the message body text lives in $theMessage.
===========================================================================
proc Trig_beepmsg {person} { ... }
This function gets the nickname of the person that beeped you sent
in via $person.
===========================================================================
proc Trig_pongmsg {} {
global theMessage
...
}
This gets called whenever the server sends you a "Pong" packet. A
read-only copy of the message body text lives in $theMessage. It is
generated by the server and usually contains the information about the
round-trip time to your client.
===========================================================================
proc Trig_dropmsg {} { ... }
proc Trig_errormsg {} { ... }
proc Trig_importantmsg {} { ... }
No arguments are passed to these functions currently. The dropmsg
gets called when the server sends you [=Drop=] warning that you're about to
be knocked off the system. errormsg/importantmsg don't seem terribly
useful, but it doesn't seem to hurt anything to have hooks available.
===========================================================================
proc Trig_invitemsg {person group} { ... }
This gets the person that invited you in $person, and the group
that you've been invited to in $group.