use warnings;
use Data::Dumper;
-use Encode qw/encode/;
+use Encode qw<encode>;
-use Xchat qw/:all/;
+use Xchat qw<:all>;
use lib get_info 'xchatdir';
use Xchat::XPI;
hook_command 'HGREP', sub {
my $txt = $_[1][1];
return EAT_ALL unless defined $txt;
- $txt = qr/$txt/;
+ $txt = qr/$txt/i;
my @matches;
for (get_list 'users') {
my $host = $_->{host};
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;