Matt failed with arguments. Fixed fatal errors.
This commit is contained in:
1 parent
61965c1cec
commit
d24452d0dd
5 files changed
+7
-7
No files matched your search
+2
-2
@@ -17,8 +17,8 @@ sub _init
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
# Create the SHORTEN and REVERSE commands.
|
# Create the SHORTEN and REVERSE commands.
|
||||||
cmd_add("SHORTEN", 0, \%m_Bitly::HELP_SHORTEN, \&m_Bitly::shorten) or return 0;
|
cmd_add("SHORTEN", 0, 0, \%m_Bitly::HELP_SHORTEN, \&m_Bitly::shorten) or return 0;
|
||||||
cmd_add("REVERSE", 0, \%m_Bitly::HELP_REVERSE, \&m_Bitly::reverse) or return 0;
|
cmd_add("REVERSE", 0, 0, \%m_Bitly::HELP_REVERSE, \&m_Bitly::reverse) or return 0;
|
||||||
|
|
||||||
# Success.
|
# Success.
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ use JSON -support_by_pp;
|
|||||||
sub _init
|
sub _init
|
||||||
{
|
{
|
||||||
# Create the CALC command.
|
# Create the CALC command.
|
||||||
cmd_add("CALC", 0, \%m_Calc::HELP_CALC, \&m_Calc::calc) or return 0;
|
cmd_add("CALC", 0, 0, \%m_Calc::HELP_CALC, \&m_Calc::calc) or return 0;
|
||||||
|
|
||||||
# Success.
|
# Success.
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ our $ANSWER = 0;
|
|||||||
sub _init
|
sub _init
|
||||||
{
|
{
|
||||||
# Create the 8BALL and RIGBALL commands.
|
# Create the 8BALL and RIGBALL commands.
|
||||||
cmd_add("8BALL", 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, \%m_EightBall::HELP_RIGBALL, \&m_EightBall::rigball) or return 0;
|
cmd_add("RIGBALL", 1, 0, \%m_EightBall::HELP_RIGBALL, \&m_EightBall::rigball) or return 0;
|
||||||
|
|
||||||
# Success.
|
# Success.
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ use LWP::UserAgent;
|
|||||||
sub _init
|
sub _init
|
||||||
{
|
{
|
||||||
# Create the ISITUP command.
|
# Create the ISITUP command.
|
||||||
cmd_add("ISITUP", 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.
|
# Success.
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ use XML::Simple;
|
|||||||
sub _init
|
sub _init
|
||||||
{
|
{
|
||||||
# Create the Weather command.
|
# Create the Weather command.
|
||||||
cmd_add("WEATHER", 0, \%m_Weather::HELP_WEATHER, \&m_Weather::weather) or return 0;
|
cmd_add("WEATHER", 0, 0, \%m_Weather::HELP_WEATHER, \&m_Weather::weather) or return 0;
|
||||||
|
|
||||||
# Success.
|
# Success.
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in new issue
Block a user