Project

General

Profile

Actions

Matchtarget » History » Revision 18

« Previous | Revision 18/24 (diff) | Next »
Per Amundsen, 12/07/2016 12:50 AM


Matchtarget

A <matchtarget> is a text pattern that AdiIRC will use to compare with a target window during a scripting event.

Different events have different valid window locations.

= - Defines dcc chat window location.
@ - Defines custom window location.
? - Defines query location.
# - Defines channel location.
* - Defines any window location.
! - TODO.
~ - Defines a monitor panel/rawlog location. (~Rawlog, ~Transfers can also be used to match a single window, AdiIRC only)
%var - A variable containing a window or a list of windows is also acceptable.

Multiple windows can be targeted by using commas.

Example

; Subscribe to the TEXT event and if #channel or #channel2 matches the target channel, print a text.
on *:TEXT:*:#channel,#channel2:echo -ag #channel matched.

; Subscribe to the TEXT event and if any channels matches the target, print a text.
on *:TEXT:*:#:echo -ag # matched.

; Subscribe to the TEXT event and if any channel or query matches the target, print a text.
on *:TEXT:*:#,?:echo -ag $target matched.

; Set a target variable.
set %target #channel

; Subscribe to the TEXT event and if #channel matches the target channel, print a text.
on *:TEXT:*:%target:echo -ag #channel matched.

Updated by Per Amundsen almost 8 years ago · 18 revisions

Also available in: PDF HTML TXT