X-Git-Url: http://git.vpit.fr/?p=perl%2Fscripts%2Fxchat.git;a=blobdiff_plain;f=opers.pl;fp=opers.pl;h=6beaf93aaa87a877f61339b79f03bf55b2160fb5;hp=2500f83441e09f1bce7fb2d87c34efba16550ba5;hb=b9c3e00cbf52ff5ddb0d79fd66a6877f6feb508d;hpb=694738744665b442290449960760fdd09c48d3fd 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;