Project

General

Profile

Scripting Events » History » Version 14

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