From 0f8a81fdb11fbffb6f06ae5aa34503deda37be75 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 25 Aug 2002 15:44:48 +0000 Subject: [PATCH] UNLOAD method is called now for all scripts before they're destroyed. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2882 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/perl/irssi-core.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/perl/irssi-core.pl b/src/perl/irssi-core.pl index f4f5ab54..e103897a 100644 --- a/src/perl/irssi-core.pl +++ b/src/perl/irssi-core.pl @@ -13,6 +13,7 @@ sub is_static { } sub destroy { + eval { $_[0]->UNLOAD; }; Symbol::delete_package($_[0]); }