From 686d0c854ab7206d4f8d5a7d96b34abfb7112c8b Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 9 Dec 2002 19:40:50 +0000 Subject: Updated from scripts.irssi.org git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3051 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- scripts/scriptassist.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/scriptassist.pl b/scripts/scriptassist.pl index 946fae6a..6dcf8598 100644 --- a/scripts/scriptassist.pl +++ b/scripts/scriptassist.pl @@ -6,7 +6,7 @@ use strict; use vars qw($VERSION %IRSSI); -$VERSION = '2002120801'; +$VERSION = '2002120901'; %IRSSI = ( authors => 'Stefan \'tommie\' Tomanek', contact => 'stefan@pico.ruhr.de', @@ -1085,8 +1085,10 @@ Irssi::signal_add_first('complete word', \&sig_complete); Irssi::signal_add_first('command script load', \&sig_command_script_load); Irssi::signal_add_first('command script unload', \&sig_command_script_load); -Irssi::signal_register({ 'script error' => [ 'Irssi::Script', 'string' ] }); -Irssi::signal_add_last('script error', \&sig_script_error); +if (defined &Irssi::signal_register) { + Irssi::signal_register({ 'script error' => [ 'Irssi::Script', 'string' ] }); + Irssi::signal_add_last('script error', \&sig_script_error); +} Irssi::command_bind('scriptassist', 'cmd_scripassist'); -- cgit v1.2.3