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