diff --git a/modules/EightBall.pm b/modules/EightBall.pm index c201e36..eaaf8f1 100644 --- a/modules/EightBall.pm +++ b/modules/EightBall.pm @@ -13,7 +13,7 @@ our $ANSWER = 0; sub _init { # Create the 8BALL and RIGBALL commands. - cmd_add('8BALL', 3, 0, \%M::EightBall::HELP_8BALL, \&M::EightBall::c_8ball) or return 0; + cmd_add('8BALL', 0, 0, \%M::EightBall::HELP_8BALL, \&M::EightBall::c_8ball) or return 0; cmd_add('RIGBALL', 1, 'cmd.rigball', \%M::EightBall::HELP_RIGBALL, \&M::EightBall::rigball) or return 0; # Success. diff --git a/modules/LinkTitle.pm b/modules/LinkTitle.pm index 2a990f3..688e604 100644 --- a/modules/LinkTitle.pm +++ b/modules/LinkTitle.pm @@ -4,7 +4,7 @@ package M::LinkTitle; use strict; use warnings; -#use LWP::UserAgent; +use LWP::UserAgent; use HTML::Entities; use API::Std qw(hook_add hook_del); use API::IRC qw(privmsg); @@ -40,7 +40,6 @@ sub gettitle # We've got a match, connect to the server. my $srv = $1; # Create an instance of LWP::UserAgent. - require LWP::UserAgent; my $ua = LWP::UserAgent->new(); $ua->agent('Auto IRC Bot'); $ua->timeout(3); @@ -60,7 +59,6 @@ sub gettitle privmsg($src->{svr}, $chan, "\2Title:\2 $title"); } } - Class::Unload->unload('LWP::UserAgent'); } }