From 73dd002259ef24b17ab774554072d8c26517e2aa Mon Sep 17 00:00:00 2001 From: dms Date: Sun, 19 Nov 2000 14:56:16 +0000 Subject: [PATCH] use AUTOLOAD to prevent crashes git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@162 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot/src/modules.pl | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.39.5