From: dms Date: Sun, 19 Nov 2000 14:56:16 +0000 (+0000) Subject: use AUTOLOAD to prevent crashes X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=73dd002259ef24b17ab774554072d8c26517e2aa;p=infobot.git use AUTOLOAD to prevent crashes git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@162 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/modules.pl b/blootbot/src/modules.pl index a27d492..8a5f371 100644 --- a/blootbot/src/modules.pl +++ b/blootbot/src/modules.pl @@ -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;