X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=tools.pl;h=b06f166d614b31cb12d53410dc245cb41e790a85;hb=e764db53b60b217e3d417c6faa60ba9bda6db3ea;hp=f162dad5a159674c7b34d44f04016f83c299422a;hpb=742dde9fdf8ef61c1a1382d326aaa2c1293a9f54;p=perl%2Fscripts%2Fxchat.git diff --git a/tools.pl b/tools.pl index f162dad..b06f166 100755 --- a/tools.pl +++ b/tools.pl @@ -4,9 +4,9 @@ use strict; use warnings; use Data::Dumper; -use Encode qw/encode/; +use Encode qw; -use Xchat qw/:all/; +use Xchat qw<:all>; use lib get_info 'xchatdir'; use Xchat::XPI; @@ -118,7 +118,7 @@ hook_command 'WIDE', sub { 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}; @@ -140,11 +140,13 @@ hook_command 'HGREP', sub { help_text => 'HGREP , 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;