]> git.donarmstrong.com Git - infobot.git/blobdiff - src/CommandStubs.pl
dunno
[infobot.git] / src / CommandStubs.pl
index d2d3ecf2fe267eb9c662d9ea176ff85e51f98746..65dc132edcfd77e5913c1ae9eb8e81318aac09e2 100644 (file)
@@ -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 {