]> git.vpit.fr Git - perl/scripts/xchat.git/blobdiff - opers.pl
Just say no to indirect object notation
[perl/scripts/xchat.git] / opers.pl
index 2500f83441e09f1bce7fb2d87c34efba16550ba5..6beaf93aaa87a877f61339b79f03bf55b2160fb5 100755 (executable)
--- 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;