X-Git-Url: https://git.donarmstrong.com/?p=infobot.git;a=blobdiff_plain;f=src%2FCommandStubs.pl;h=65dc132edcfd77e5913c1ae9eb8e81318aac09e2;hp=d2d3ecf2fe267eb9c662d9ea176ff85e51f98746;hb=23abe86f946486f5aaa6035da6fc244d61135c97;hpb=260aac1f66d2fc602fc842f0fd16eeff409b9e5a diff --git a/src/CommandStubs.pl b/src/CommandStubs.pl index d2d3ecf..65dc132 100644 --- a/src/CommandStubs.pl +++ b/src/CommandStubs.pl @@ -49,7 +49,7 @@ sub parseCmdHook { &shmFlush(); - if ( !defined %cmdhooks ) { + if ( !%cmdhooks ) { &WARN('%cmdhooks does not exist.'); return 0; } @@ -679,7 +679,7 @@ sub verstats_flush { return unless ( scalar @vernicktodo ); - $conn->schedule( 3, \&verstats_flush() ); + $conn->schedule( 3, \&verstats_flush ); } sub do_text_counters {