X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Xchat%2FXPI%2FUtils.pm;h=d5a3fc34f39c915b470ee7cca07f0ac3860edf14;hb=e764db53b60b217e3d417c6faa60ba9bda6db3ea;hp=30f31c633fd923a664d4efbf4f2864a06d9f2467;hpb=b9c3e00cbf52ff5ddb0d79fd66a6877f6feb508d;p=perl%2Fscripts%2Fxchat.git diff --git a/Xchat/XPI/Utils.pm b/Xchat/XPI/Utils.pm index 30f31c6..d5a3fc3 100644 --- a/Xchat/XPI/Utils.pm +++ b/Xchat/XPI/Utils.pm @@ -3,14 +3,9 @@ package Xchat::XPI::Utils; use strict; use warnings; -use Xchat qw/:all/; +use Xchat qw<:all>; -use lib get_info 'xchatdir'; -use Xchat::XPI qw/register init/; - -our $VERSION = '0.01'; - -my $ph; +our $VERSION = '0.02'; sub dye_nick { my ($nick, $col) = ($_[0], 0); @@ -22,20 +17,11 @@ sub dye_nick { return sprintf "\003%d%s", $rcolors[$col], $nick; } -use base qw/Exporter/; +use base qw; our @EXPORT = (); -our %EXPORT_TAGS = ('funcs' => [ qw/dye_nick/ ]); +our %EXPORT_TAGS = ('funcs' => [ qw ]); our @EXPORT_OK = map { @$_ } values %EXPORT_TAGS; $EXPORT_TAGS{'all'} = [ @EXPORT_OK ]; -$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;