Project

General

Profile

Scripting Events » History » Version 17

Per Amundsen, 02/11/2015 12:54 AM

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