Project

General

Profile

Scripting Events » History » Version 13

Per Amundsen, 07/17/2014 06:44 AM

1 13 Per Amundsen
h1. Scripting Event Options
2 1 Per Amundsen
3 8 Per Amundsen
Supported <level> prefixes:
4
5 11 Per Amundsen
& - Ignore the event if another event has already halted the text.
6 8 Per Amundsen
^ - Enable halt events (hide default text output from the event)
7
! - Ignore events made by you
8
@ - Only trigger if you have channel op
9
$ - Indicate the wildcard text is a regular expression.
10
me: - Ignore events not made by you.
11 6 Per Amundsen
12 9 Per Amundsen
User level access is not implemented yet.
13 1 Per Amundsen
14 13 Per Amundsen
h1. Scripting Event Evaluation
15 12 Per Amundsen
matchtext and target text can be evaluated using $(code) or contain a single %variable.
16
17
*Example*
18
<pre>
19
;Set a target variable.
20
set %target #channel
21 1 Per Amundsen
22 12 Per Amundsen
;Subscribe to the TEXT event.
23 13 Per Amundsen
on *:TEXT:$(* $+ $me $+ *)):%target:echo -ag My nick was highlighted on %target
24 1 Per Amundsen
</pre>
25 12 Per Amundsen
26 13 Per Amundsen
h1. Scripting Events
27 2 Per Amundsen
<pre>
28 1 Per Amundsen
raw <numeric>:<matchtext>:<commands>
29
30
ctcp <level>:<matchtext>:<*|#|?>:<commands>
31
32 4 Per Amundsen
on <level>:SOCKOPEN:name:commands
33 1 Per Amundsen
34 4 Per Amundsen
on <level>:SOCKREAD:name:commands
35 1 Per Amundsen
36 4 Per Amundsen
on <level>:SOCKLISTEN:name:commands
37 1 Per Amundsen
38 4 Per Amundsen
on <level>:SOCKCLOSE:name:commands
39 1 Per Amundsen
40 4 Per Amundsen
on <level>:SIGNAL:name:command
41 1 Per Amundsen
42
on <level>:LOGON:*:<commands>
43
44
on <level>:DNS:<commands>
45
46
on <level>:CTCPREPLY:<matchtext>:<commands>
47
48
on <level>:OPEN|CLOSE:<?|@|=|!|*>:<matchtext>:<commands>
49
50 5 Per Amundsen
on <level>:APPACTIVE:<commands>
51
52 1 Per Amundsen
on <level>:ACTIVE:<*#?=!@>:<commands>
53
54
on <level>:HOTLINK:<matchtext>:<*#?=!@>:<commands>
55
56
on <level>:INVITE:<#[,#]>:<commands>
57
58
on <level>:TABCOMP:<*#?=!@>:<commands>
59
60
on <level>:WALLOPS:<matchtext>:<commands>
61
62
on <level>:ERROR:<matchtext>:<commands>
63
64
on <level>:RAWMODE:#:<commands>
65
66
on <level>:DEHELP:<#[,#]>:<commands>
67
68
on <level>:HELP:<#[,#]>:<commands>
69
70
on <level>:DEVOICE:<#[,#]>:<commands>
71
72
on <level>:VOICE:<#[,#]>:<commands>
73
74
on <level>:DEOP:<#[,#]>:<commands>
75
76
on <level>:OP:<#[,#]>:<commands>
77
78
on <level>:INPUT:<*#?=!@>:<commands>
79
80
on <level>:UNBAN:<#[,#]>:<commands>
81
82
on <level>:BAN:<#[,#]>:<commands>
83
84
on <level>:CHAT:<matchtext>:<commands>
85
86
on <level>:KICK:<#[,#]>:<commands>
87
88
on <level>:NOTIFY:<commands>
89
90
on <level>:UNNOTIFY:<commands>
91
92
on <level>:NICK:<commands>
93
94
on <level>:QUIT:<commands>
95
96
on <level>:LOAD:<commands>
97
98
on <level>:UNLOAD:<commands>'
99
100
on <level>:START:<commands>
101
102
on <level>:EXIT:<commands>
103
104
on <level>:DNS:<commands>
105
106
on <level>:CONNECTFAIL:<commands>
107
108
on <level>:CONNECT:<commands>
109
110
on <level>:DISCONNECT:<commands>
111
112
on <level>:TOPIC:<#[,#]>:<commands>
113
114
on <level>:USERMODE:<commands>
115
116
on <level>:MODE:<#[,#]>:<commands>
117
118
on <level>:PART:<#[,#]>:<commands>
119
120
on <level>:JOIN:<#[,#]>:<commands>
121
122
on <level>:SNOTICE:<matchtext>:<commands>
123
124
on <level>:NOTICE:<matchtext>:<*><?><#[,#]>:<commands>
125
126
on <level>:ACTION:<matchtext>:<*><?><#[,#]>:<commands>
127
128
on <level>:TEXT:<matchtext>:<*><?><#[,#]>:<commands>
129 3 Per Amundsen
130
This event is added as a replacement for OnSongChanged
131
on <level>:SONG:<commands>
132 7 Per Amundsen
133 10 Per Amundsen
Triggers whenever the config file is reloaded
134 1 Per Amundsen
on <level>:OPTIONS:<commands>
135 10 Per Amundsen
136
Triggers whenever the client sends a client text to any window, $1- will hold the original client text, haltable.
137
on <level>:CLIENTTEXT:<matchtext>:<*#?=!@>:<commands>
138 3 Per Amundsen
</pre>