]> git.donarmstrong.com Git - infobot.git/commitdiff
use AUTOLOAD to prevent crashes
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 19 Nov 2000 14:56:16 +0000 (14:56 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 19 Nov 2000 14:56:16 +0000 (14:56 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@162 c11ca15a-4712-0410-83d8-924469b57eb5

blootbot/src/modules.pl

index a27d4928f85fa585ccafe62d2cd95eaa835021a5..8a5f371876469d78181ea85fc3cb7c59b42de079 100644 (file)
@@ -6,6 +6,7 @@
 #
 
 if (&IsParam("useStrict")) { use strict; }
+use vars qw($AUTOLOAD);
 
 ###
 ### REQUIRED MODULES.
@@ -331,4 +332,11 @@ $no_syscall = 0;
 #}
 #&showProc(" (syscall)");
 
+sub AUTOLOAD {
+    &ERROR("UNKNOWN FUNCTION CALLED: $AUTOLOAD");
+    foreach (@_) {
+       &status("  => $_");
+    }
+}
+
 1;