summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-12-09 19:40:50 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-12-09 19:40:50 +0000
commit686d0c854ab7206d4f8d5a7d96b34abfb7112c8b (patch)
treebc9887c497991791bdc3a728d4d9e702d00c2344 /scripts
parent65eb0d32806026c289fd3c223836ef1bc90ea8f8 (diff)
downloadirssi-686d0c854ab7206d4f8d5a7d96b34abfb7112c8b.zip
Updated from scripts.irssi.org
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3051 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'scripts')
-rw-r--r--scripts/scriptassist.pl8
1 files changed, 5 insertions, 3 deletions
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');