X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=opers.pl;h=6beaf93aaa87a877f61339b79f03bf55b2160fb5;hb=b9c3e00cbf52ff5ddb0d79fd66a6877f6feb508d;hp=2500f83441e09f1bce7fb2d87c34efba16550ba5;hpb=c72e6cd5e28d8dddf65c292d1d7f1ea5ad4be129;p=perl%2Fscripts%2Fxchat.git diff --git a/opers.pl b/opers.pl index 2500f83..6beaf93 100755 --- a/opers.pl +++ b/opers.pl @@ -94,12 +94,14 @@ hook_command 'OPSCAN', sub { 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;