From ec627df22e15f69f0d214a77749b3b25499520ec Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Thu, 17 Feb 2011 22:33:14 -0700 Subject: [PATCH] Fix all the modules. --- modules/Badwords.pm | 4 ++-- modules/Bitly.pm | 8 ++++---- modules/Calc.pm | 9 ++------- modules/ChanTopics.pm | 2 +- modules/Dictionary.pm | 2 +- modules/EightBall.pm | 12 ++++++------ modules/FML.pm | 10 +++++----- modules/Greet.pm | 2 +- modules/HelloChan.pm | 12 +++++++++++- modules/IsItUp.pm | 8 ++++---- modules/QDB.pm | 2 +- modules/SASLAuth.pm | 6 +++--- modules/Weather.pm | 4 ++-- 13 files changed, 43 insertions(+), 38 deletions(-) diff --git a/modules/Badwords.pm b/modules/Badwords.pm index 51e3b05..34134f7 100644 --- a/modules/Badwords.pm +++ b/modules/Badwords.pm @@ -70,7 +70,7 @@ sub actonbadword } -API::Std::mod_init('Badwords', 'Xelhua', '1.00', '3.0.0d', __PACKAGE__); +API::Std::mod_init('Badwords', 'Xelhua', '1.00', '3.0.0a4', __PACKAGE__); # vim: set ai sw=4 ts=4: # build: perl=5.010000 @@ -122,6 +122,6 @@ Changing the obvious to your wish. =over -This module is compatible with Auto version 3.0.0a3+. +This module is compatible with Auto version 3.0.0a4+. =back diff --git a/modules/Bitly.pm b/modules/Bitly.pm index fb51f1a..4c160fe 100644 --- a/modules/Bitly.pm +++ b/modules/Bitly.pm @@ -118,7 +118,7 @@ sub reverse # Start initialization. -API::Std::mod_init("Bitly", "Xelhua", "1.00", "3.0.0d", __PACKAGE__); +API::Std::mod_init('Bitly', 'Xelhua', '1.00', '3.0.0a4', __PACKAGE__); # vim: set ai sw=4 ts=4: # build: cpan=LWP::UserAgent,URI::Escape perl=5.010000 @@ -176,9 +176,9 @@ Add Bitly to module auto-load and the following to your configuration file: =over -This module adds extra dependencies: LWP::UserAgent and URI::Escape. -You can get it from the CPAN . +This module adds extra dependencies: LWP::UserAgent and URI::Escape. You can +get it from the CPAN . -This module is compatible with Auto version 3.0.0a2+. +This module is compatible with Auto version 3.0.0a4+. =back diff --git a/modules/Calc.pm b/modules/Calc.pm index 33b4f26..f9247dc 100644 --- a/modules/Calc.pm +++ b/modules/Calc.pm @@ -13,11 +13,6 @@ use JSON -support_by_pp; # Initialization subroutine. sub _init { - # Check for JSON::PP. - eval { - require JSON::PP; - 1; - } or return 0; # Create the CALC command. cmd_add("CALC", 0, 0, \%M::Calc::HELP_CALC, \&M::Calc::calc) or return 0; @@ -83,7 +78,7 @@ sub calc } # Start initialization. -API::Std::mod_init("Calc", "Xelhua", "1.00", "3.0.0d", __PACKAGE__); +API::Std::mod_init('Calc', 'Xelhua', '1.00', '3.0.0a4', __PACKAGE__); # vim: set ai sw=4 ts=4: # build: cpan=LWP::UserAgent,URI::Escape,JSON,JSON::PP perl=5.010000 @@ -124,6 +119,6 @@ Google Calculator. This module requires LWP::UserAgent, URI::Escape and JSON/JSON::PP. All are obtainable from the CPAN . -This module is compatible with Auto version 3.0.0a2+. +This module is compatible with Auto version 3.0.0a4+. =back diff --git a/modules/ChanTopics.pm b/modules/ChanTopics.pm index bf45c41..8561da3 100644 --- a/modules/ChanTopics.pm +++ b/modules/ChanTopics.pm @@ -282,7 +282,7 @@ sub _getdata } -API::Std::mod_init('ChanTopics', 'Xelhua', '1.00', '3.0.0d', __PACKAGE__); +API::Std::mod_init('ChanTopics', 'Xelhua', '1.00', '3.0.0a4', __PACKAGE__); # vim: set ai sw=4 ts=4: # build: perl=5.010000 diff --git a/modules/Dictionary.pm b/modules/Dictionary.pm index 7842087..4f960f2 100644 --- a/modules/Dictionary.pm +++ b/modules/Dictionary.pm @@ -75,7 +75,7 @@ sub cmd_dict # Start initialization. -API::Std::mod_init('Dictionary', 'Xelhua', '1.00', '3.0.0d', __PACKAGE__); +API::Std::mod_init('Dictionary', 'Xelhua', '1.00', '3.0.0a4', __PACKAGE__); # vim: set ai sw=4 ts=4: # build: cpan=Net::Dict perl=5.010000 diff --git a/modules/EightBall.pm b/modules/EightBall.pm index 711eaea..eaaf8f1 100644 --- a/modules/EightBall.pm +++ b/modules/EightBall.pm @@ -13,8 +13,8 @@ our $ANSWER = 0; sub _init { # Create the 8BALL and RIGBALL commands. - 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; + 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. return 1; @@ -24,8 +24,8 @@ sub _init sub _void { # Delete the 8BALL and RIGBALL commands. - cmd_del("8BALL") or return 0; - cmd_del("RIGBALL") or return 0; + cmd_del('8BALL') or return 0; + cmd_del('RIGBALL') or return 0; # Success. return 1; @@ -99,7 +99,7 @@ sub rigball # Start initialization. -API::Std::mod_init("EightBall", "Xelhua", "1.00", "3.0.0d", __PACKAGE__); +API::Std::mod_init('EightBall', 'Xelhua', '1.00', '3.0.0a4', __PACKAGE__); # vim: set ai sw=4 ts=4: # build: perl=5.010000 @@ -143,7 +143,7 @@ command for setting ("rigging") the 8-Ball's next answer. =over -This module is compatible with Auto version 3.0.0a2+. +This module is compatible with Auto version 3.0.0a4+. Ported from Auto 1.0. diff --git a/modules/FML.pm b/modules/FML.pm index 19f2c4a..0131984 100644 --- a/modules/FML.pm +++ b/modules/FML.pm @@ -12,7 +12,7 @@ use LWP::UserAgent; sub _init { # Create the FML command. - cmd_add("FML", 0, 0, \%M::FML::HELP_FML, \&M::FML::fml) or return 0; + cmd_add('FML', 0, 0, \%M::FML::HELP_FML, \&M::FML::fml) or return 0; # Success. return 1; @@ -22,7 +22,7 @@ sub _init sub _void { # Delete the FML command. - cmd_del("FML") or return 0; + cmd_del('FML') or return 0; # Success. return 1; @@ -44,7 +44,7 @@ sub fml $ua->timeout(2); # Get the random FML via HTTP. - my $rp = $ua->get("http://rscript.org/lookup.php?type=fml"); + my $rp = $ua->get('http://rscript.org/lookup.php?type=fml'); if ($rp->is_success) { # If successful, decode the content. @@ -67,7 +67,7 @@ sub fml } # Start initialization. -API::Std::mod_init("FML", "Xelhua", "1.00", "3.0.0d", __PACKAGE__); +API::Std::mod_init('FML', 'Xelhua', '1.00', '3.0.0a4', __PACKAGE__); # vim: set ai sw=4 ts=4: # build: cpan=LWP::UserAgent perl=5.010000 @@ -110,7 +110,7 @@ have my hand back?" FML This module adds an extra dependency: LWP::UserAgent. You can get it from the CPAN . -This module is compatible with Auto version 3.0.0a2+. +This module is compatible with Auto version 3.0.0a4+. Ported from Auto 2.0. diff --git a/modules/Greet.pm b/modules/Greet.pm index 07c2f0a..ba9445a 100644 --- a/modules/Greet.pm +++ b/modules/Greet.pm @@ -125,7 +125,7 @@ sub hook_rcjoin } # Start initialization. -API::Std::mod_init('Greet', 'Xelhua', '1.00', '3.0.0d', __PACKAGE__); +API::Std::mod_init('Greet', 'Xelhua', '1.00', '3.0.0a4', __PACKAGE__); # vim: set ai sw=4 ts=4: # build: perl=5.010000 diff --git a/modules/HelloChan.pm b/modules/HelloChan.pm index 5d7958e..b02b023 100644 --- a/modules/HelloChan.pm +++ b/modules/HelloChan.pm @@ -36,6 +36,16 @@ sub hello # Start initialization. -API::Std::mod_init("HelloChan", "Xelhua", "1.00", "3.0.0d", __PACKAGE__); +API::Std::mod_init('HelloChan', 'Xelhua', '1.00', '3.0.0a4', __PACKAGE__); # vim: set ai sw=4 ts=4: # build: perl=5.010000 + +__END__ + +=head1 HelloChan + +=over + +This is an example module. Also, cows go moo. + +=back diff --git a/modules/IsItUp.pm b/modules/IsItUp.pm index 478d9a1..67c07ad 100644 --- a/modules/IsItUp.pm +++ b/modules/IsItUp.pm @@ -12,7 +12,7 @@ use LWP::UserAgent; sub _init { # Create the ISITUP command. - cmd_add("ISITUP", 0, 0, \%M::IsItUp::HELP_ISITUP, \&M::IsItUp::check) or return 0; + cmd_add('ISITUP', 0, 0, \%M::IsItUp::HELP_ISITUP, \&M::IsItUp::check) or return 0; # Success. return 1; @@ -22,7 +22,7 @@ sub _init sub _void { # Delete the ISITUP command. - cmd_del("ISITUP") or return 0; + cmd_del('ISITUP') or return 0; # Success. return 1; @@ -69,7 +69,7 @@ sub check } # Start initialization. -API::Std::mod_init('IsItUp', 'Xelhua', '1.00', '3.0.0d', __PACKAGE__); +API::Std::mod_init('IsItUp', 'Xelhua', '1.00', '3.0.0a4', __PACKAGE__); # vim: set ai sw=4 ts=4: # build: cpan=LWP::UserAgent perl=5.010000 @@ -110,6 +110,6 @@ appears up or down to Auto. This module requires LWP::UserAgent. You can get it from the CPAN . -This module is compatible with Auto version 3.0.0a2+. +This module is compatible with Auto version 3.0.0a4+. =back diff --git a/modules/QDB.pm b/modules/QDB.pm index a30af1e..fd7dc75 100644 --- a/modules/QDB.pm +++ b/modules/QDB.pm @@ -138,7 +138,7 @@ sub cmd_qdb } -API::Std::mod_init('QDB', 'Xelhua', '1.00', '3.0.0d', __PACKAGE__); +API::Std::mod_init('QDB', 'Xelhua', '1.00', '3.0.0a4', __PACKAGE__); # vim: set ai sw=4 ts=4: # build: perl=5.010000 diff --git a/modules/SASLAuth.pm b/modules/SASLAuth.pm index 583904e..f4ad9a5 100644 --- a/modules/SASLAuth.pm +++ b/modules/SASLAuth.pm @@ -130,13 +130,13 @@ sub handle_906 } # Start initialization. -API::Std::mod_init("SASLAuth", "Xelhua", "1.00", "3.0.0d", __PACKAGE__); +API::Std::mod_init('SASLAuth', 'Xelhua', '1.00', '3.0.0a4', __PACKAGE__); # vim: set ai sw=4 ts=4: # build: perl=5.010000 __END__ -=head1 SASL Auth +=head1 SASLAuth =head2 Description @@ -188,6 +188,6 @@ block(s) you wish to use SASL with: This adds an extra dependency: You must build Auto with the --enable-sasl option. -This module is compatible with Auto v3.0.0a1+. +This module is compatible with Auto v3.0.0a4+. =back diff --git a/modules/Weather.pm b/modules/Weather.pm index e4db515..0f3180b 100644 --- a/modules/Weather.pm +++ b/modules/Weather.pm @@ -78,7 +78,7 @@ sub weather } # Start initialization. -API::Std::mod_init("Weather", "Xelhua", "1.00", "3.0.0d", __PACKAGE__); +API::Std::mod_init('Weather', 'Xelhua', '1.00', '3.0.0a4', __PACKAGE__); # vim: set ai sw=4 ts=4: # build: cpan=LWP::UserAgent,XML::Simple perl=5.010000 @@ -121,6 +121,6 @@ From the NE at 9 MPH Gusting to 22 MPH Conditions: Overcast This module requires LWP::UserAgent and XML::Simple. Both are obtainable from CPAN . -This module is compatible with Auto version 3.0.0a2+. +This module is compatible with Auto version 3.0.0a4+. =back