{{>toc}} h1. Scripting Event Options Supported <level> prefixes: & - Ignore the event if another event has already halted the text. ^ - Enable halt events (hide default text output from the event) ! - Ignore events made by you @ - Only trigger if you have channel op $ - Indicate the wildcard text is a regular expression. me: - Ignore events not made by you. [+]<level> - Level to match. h1. Scripting Event Evaluation Matchtext and Target Window can be evaluated using $(code) or contain a single %variable. *Example*
; Set a target variable.
set %target #channel

; Subscribe to the TEXT event, try evaluate my nick, and if it matches, print a text.
on *:TEXT:$(* $+ $me $+ *)):%target:echo -ag My nick was highlighted on %target
h1. Scripting Events |^. [[on RAW]] [[on CTCP]] [[on ACTION]] [[on ACTIVE]] [[on APPACTIVE]] [[on BAN]] [[on CHAT]] [[on CLIENTTEXT]] [[on CLOSE]] [[on CONNECT]] [[on CONNECTFAIL]] [[on CTCPREPLY]] [[on DEHELP]] [[on DEOP]] [[on DEVOICE]] |^. [[on DIALOG]] [[on DISCONNECT]] [[on DNS]] [[on DNS]] [[on ERROR]] [[on EXIT]] [[on FILERCVD]] [[on FILESENT]] [[on GETFAIL]] [[on HELP]] [[on HOTLINK]] [[on INPUT]] [[on INVITE]] [[on JOIN]] [[on KEYDOWN]] |^. [[on KEYUP]] [[on KICK]] [[on LOAD]] [[on LOGON]] [[on MODE]] [[on MP3END]] [[on NICK]] [[on NOTICE]] [[on NOTIFY]] [[on OP]] [[on OPEN]] [[on OPTIONS]] [[on PARSELINE]] [[on PART]] [[on PING]] |^. [[on PONG]] [[on QUIT]] [[on RAWMODE]] [[on RESUME]] [[on SENDFAIL]] [[on SERVERMODE]] [[on SIGNAL]] [[on SNOTICE]] [[on SOCKCLOSE]] [[on SOCKLISTEN]] [[on SOCKOPEN]] [[on SOCKREAD]] [[on SONG]] [[on START]] [[on SUSPEND]] |^. [[on TABCOMP]] [[on TEXT]] [[on TOPIC]] [[on UNBAN]] [[on UNLOAD]] [[on UNNOTIFY]] [[on UNOTIFY]] [[on USERMODE]] [[on VOICE]] [[on WALLOPS]] [[on WALLOPS]] |
raw ::

ctcp ::<*|#|?>:

on :SOCKOPEN:name:commands

on :SOCKREAD:name:commands

on :SOCKLISTEN:name:commands

on :SOCKCLOSE:name:commands

on :SIGNAL:name:command

on :LOGON:*:

on :DNS:

on :CTCPREPLY::

on :OPEN|CLOSE:::

on :APPACTIVE:

on :ACTIVE:<*#?=!@>:

on :HOTLINK::<*#?=!@>:

on :INVITE:<#[,#]>:

on :TABCOMP:<*#?=!@>:

on :WALLOPS::

on :ERROR::

on :RAWMODE:#:

on :DEHELP:<#[,#]>:

on :HELP:<#[,#]>:

on :DEVOICE:<#[,#]>:

on :VOICE:<#[,#]>:

on :DEOP:<#[,#]>:

on :OP:<#[,#]>:

on :INPUT:<*#?=!@>:

on :UNBAN:<#[,#]>:

on :BAN:<#[,#]>:

on :CHAT::

on :KICK:<#[,#]>:

on :NOTIFY:

on :UNNOTIFY:

on :NICK:

on :QUIT:

on :LOAD:

on :UNLOAD:'

on :START:

on :EXIT:

on :DNS:

on :CONNECTFAIL:

on :CONNECT:

on :DISCONNECT:

on :TOPIC:<#[,#]>:

on :USERMODE:

on :MODE:<#[,#]>:

on :PART:<#[,#]>:

on :JOIN:<#[,#]>:

on :SNOTICE::

on :NOTICE::<*><#[,#]>:

on :ACTION::<*><#[,#]>:

on :TEXT::<*><#[,#]>:

on :MP3END:

on :PARSELINE::matchtext:

on :PING:

on :PONG:

on :FILESENT::

on :FILERCVD::

on :SENDFAIL::

on :GETFAIL::

Triggers when the computer is about to suspend.
on :SUSPEND:

Triggers when the computer resumes from suspend.
on :RESUME:

Triggers when the chosen media player changes song.
on :SONG:

Triggers whenever the config file is reloaded
on :OPTIONS:

Triggers whenever the client sends a client text to any window, $1- will hold the original client text, haltable.
on :CLIENTTEXT::<*#?=!@>: