From 556cc551eaf6d6ea3f8c3266331d560843c2cabc 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/blootbot@162 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/modules.pl | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.39.5