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=556cc551eaf6d6ea3f8c3266331d560843c2cabc;p=infobot.git use AUTOLOAD to prevent crashes git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@162 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/modules.pl b/src/modules.pl index a27d492..8a5f371 100644 --- a/src/modules.pl +++ b/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;