summaryrefslogtreecommitdiff
path: root/docs/help/in/script.in
blob: 6e94ef7f2dfd87dfd9bb29c35bd95fea3c254760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

%9Syntax:%9

@SYNTAX:script@

%9Parameters:%9

    LIST:          Displays the list of loaded scripts.
    EXEC:          Executes the given code.
    LOAD:          Loads the given script into the memory and executes it.
    UNLOAD:        Unloads the given script from the memory.
    RESET:         Unloads all the scripts.
    -permanent:    In combination with EXEC, the code will be loaded into the
                   memory.

    If no argument is given, the list of active scripts will be displayed.

%9Description:%9

    Interact with the Perl engine to execute scripts.

%9Examples:%9

    /SCRIPT
    /SCRIPT LIST
    /SCRIPT LOAD ~/.irssi/scripts/nickserv.pl
    /SCRIPT UNLOAD nickserv
    /SCRIPT RESET
    /SCRIPT EXEC foreach my $channel (Irssi::channels()) { Irssi::print($channel->{name} . ' @ ' . $channel->{server}->{tag}); }

%9See also:%9 LOAD, SAVE, UNLOAD