sub PRINTF { shift->printf(@_) }
-my $ph = new __PACKAGE__, name => 'Extended Xchat Perl Interface',
- desc => 'Adds extended support for Perl scripts',
- author => 'Vincent Pit (VPIT)',
- email => 'perl@profvince.com',
- url => 'http://www.profvince.com';
+my $ph = __PACKAGE__->new(
+ name => 'Extended Xchat Perl Interface',
+ desc => 'Adds extended support for Perl scripts',
+ author => 'Vincent Pit (VPIT)',
+ email => 'perl@profvince.com',
+ url => 'http://www.profvince.com',
+);
1;
our @EXPORT_OK = map { @$_ } values %EXPORT_TAGS;
$EXPORT_TAGS{'all'} = [ @EXPORT_OK ];
-$ph = new Xchat::XPI name => 'Extended Xchat Perl Interface :: Events',
- tag => 'XPI::Events',
- desc => 'More events handlers',
- author => 'Vincent Pit (VPIT)',
- email => 'perl@profvince.com',
- url => 'http://www.profvince.com';
+$ph = Xchat::XPI->new(
+ name => 'Extended Xchat Perl Interface :: Events',
+ tag => 'XPI::Events',
+ desc => 'More events handlers',
+ author => 'Vincent Pit (VPIT)',
+ email => 'perl@profvince.com',
+ url => 'http://www.profvince.com',
+);
1;
our @EXPORT_OK = map { @$_ } values %EXPORT_TAGS;
$EXPORT_TAGS{'all'} = [ @EXPORT_OK ];
-$ph = new Xchat::XPI name => 'Extended Xchat Perl Interface :: Net',
- tag => 'XPI::Net',
- desc => 'Asynchronous network tools',
- author => 'Vincent Pit (VPIT)',
- email => 'perl@profvince.com',
- url => 'http://www.profvince.com';
+$ph = Xchat::XPI->new(
+ name => 'Extended Xchat Perl Interface :: Net',
+ tag => 'XPI::Net',
+ desc => 'Asynchronous network tools',
+ author => 'Vincent Pit (VPIT)',
+ email => 'perl@profvince.com',
+ url => 'http://www.profvince.com',
+);
1;
our @EXPORT_OK = map { @$_ } values %EXPORT_TAGS;
$EXPORT_TAGS{'all'} = [ @EXPORT_OK ];
-$ph = new Xchat::XPI name => 'Extended Xchat Perl Interface :: Utils',
- tag => 'XPI::Utils',
- desc => 'Utility functions',
- author => 'Vincent Pit (VPIT)',
- email => 'perl@profvince.com',
- url => 'http://www.profvince.com';
+$ph = Xchat::XPI->new(
+ name => 'Extended Xchat Perl Interface :: Utils',
+ tag => 'XPI::Utils',
+ desc => 'Utility functions',
+ author => 'Vincent Pit (VPIT)',
+ email => 'perl@profvince.com',
+ url => 'http://www.profvince.com',
+);
1;
help_text => 'Scan for clones in the current channel'
};
-$ph = new Xchat::XPI name => 'Clones scanner',
- tag => 'Clones',
- desc => 'Automatic & on-demand clones scanner',
- author => 'Vincent Pit (VPIT)',
- email => 'perl@profvince.com',
- url => 'http://www.profvince.com',
- unload => sub { undef %users };
+$ph = Xchat::XPI->new(
+ name => 'Clones scanner',
+ tag => 'Clones',
+ desc => 'Automatic & on-demand clones scanner',
+ author => 'Vincent Pit (VPIT)',
+ email => 'perl@profvince.com',
+ url => 'http://www.profvince.com',
+ unload => sub { undef %users },
+);
1;
}
} => 'Channel Action';
-$ph = new Xchat::XPI name => 'Smart highlighting',
- tag => 'HL',
- desc => 'Highlight on private messages',
- author => 'Vincent Pit (VPIT)',
- email => 'perl@profvince.com',
- url => 'http://www.profvince.com';
+$ph = Xchat::XPI->new(
+ name => 'Smart highlighting',
+ tag => 'HL',
+ desc => 'Highlight on private messages',
+ author => 'Vincent Pit (VPIT)',
+ email => 'perl@profvince.com',
+ url => 'http://www.profvince.com',
+);
1;
help_text => "$_, output which song is currently played by mpd"
} for qw/MPD NP/;
-$ph = new Xchat::XPI name => 'MPD Client',
- tag => 'MPD',
- desc => 'Music Player Daemon client',
- author => 'Vincent Pit (VPIT)',
- email => 'perl@profvince.com',
- url => 'http://www.profvince.com';
+$ph = Xchat::XPI->new(
+ name => 'MPD Client',
+ tag => 'MPD',
+ desc => 'Music Player Daemon client',
+ author => 'Vincent Pit (VPIT)',
+ email => 'perl@profvince.com',
+ url => 'http://www.profvince.com',
+);
1;
help_text => 'TLD <hostname(s)>, give the TLD text representation of the hosts'
};
-$ph = new Xchat::XPI name => 'Networking tools',
- tag => 'Net',
- desc => 'DNS & Whois clients, TLD names',
- author => 'Vincent Pit (VPIT)',
- email => 'perl@profvince.com',
- url => 'http://www.profvince.com';
+$ph = Xchat::XPI->new(
+ name => 'Networking tools',
+ tag => 'Net',
+ desc => 'DNS & Whois clients, TLD names',
+ author => 'Vincent Pit (VPIT)',
+ email => 'perl@profvince.com',
+ url => 'http://www.profvince.com',
+);
1;
help_text => 'OPSCAN, scan for IRC operators in the current channel'
};
-$ph = new Xchat::XPI name => 'Operators',
- tag => 'Opers',
- desc => 'IRC operators scanner',
- author => 'Vincent Pit (VPIT)',
- email => 'perl@profvince.com',
- url => 'http://www.profvince.com',
- unload => sub { undef %opers; };
+$ph = Xchat::XPI->new(
+ name => 'Operators',
+ tag => 'Opers',
+ desc => 'IRC operators scanner',
+ author => 'Vincent Pit (VPIT)',
+ email => 'perl@profvince.com',
+ url => 'http://www.profvince.com',
+ unload => sub { undef %opers },
+);
1;
'the specified targets (or you if none) on the current channel via ChanServ'
} for map { $_, "DE$_" } qw/VOICE HALFOP OP PROTECT/;
-$ph = new Xchat::XPI name => 'IRC Services',
- tag => 'Services',
- desc => 'Various IRC services helpers',
- author => 'Vincent Pit (VPIT)',
- email => 'perl@profvince.com',
- url => 'http://www.profvince.com';
+$ph = Xchat::XPI->new(
+ name => 'IRC Services',
+ tag => 'Services',
+ desc => 'Various IRC services helpers',
+ author => 'Vincent Pit (VPIT)',
+ email => 'perl@profvince.com',
+ url => 'http://www.profvince.com',
+);
1;
help_text => 'HGREP <text>, print users in the current context whose hostname matches text'
};
-$ph = new Xchat::XPI name => 'Misc tools',
- tag => 'Tools',
- desc => 'Perl interpretor, URI escaper',
- author => 'Vincent Pit (VPIT)',
- email => 'perl@profvince.com',
- url => 'http://www.profvince.com';
+$ph = Xchat::XPI->new(
+ name => 'Misc tools',
+ tag => 'Tools',
+ desc => 'Perl interpretor, URI escaper',
+ author => 'Vincent Pit (VPIT)',
+ email => 'perl@profvince.com',
+ url => 'http://www.profvince.com',
+);
1;