Script - shabble/irssi-docs GitHub Wiki

Irssi::Script

home | Irssi

ATTRIBUTES

Script->{}

name    - the name of the script
package - package which the script is loaded into, Irssi::Script::X
path    - path to the script file?
data    - unknown?

Sample Object Contents

The Data::Dumper output of the arguments passed to a "script error" signal handler, which is apparently the only way to obtain an Irssi::Script object via the API. See [[script error|signals#Perl_Scripting]] in Signals for further details.

$VAR1 = bless( {
   '_irssi' => 4305562640,
   'name' => 'error',
   'data' => '',
   'path' => '/home/shabble/irssi-stuff/scripts/error.pl',
   'package' => 'Irssi::Script::error'
 }, 'main::Irssi::Script' );

$VAR2 = 'Oh noes, I broke! at /home/shabble/irssi-stuff/scripts/error.pl line 15.';

METHODS

None

⚠️ **GitHub.com Fallback** ⚠️