diff options
author | Timo Sirainen <cras@irssi.org> | 2001-11-11 22:39:56 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-11-11 22:39:56 +0000 |
commit | ea03650b3f495d39d46f288ce3ddd4142ff34a77 (patch) | |
tree | bba0d371f2a1d8562ad00a621652ff2d85de64c6 /src/perl/textui | |
parent | 571f3acaf8ffe4fa86679f210473d6b91019fb1f (diff) | |
download | irssi-ea03650b3f495d39d46f288ce3ddd4142ff34a77.zip |
Updated perl API version. Fixed irssi to behave better if the API doesn't
match (doesn't crash).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1985 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl/textui')
-rw-r--r-- | src/perl/textui/TextUI.xs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/perl/textui/TextUI.xs b/src/perl/textui/TextUI.xs index c92da84a..ba08ccdf 100644 --- a/src/perl/textui/TextUI.xs +++ b/src/perl/textui/TextUI.xs @@ -1,5 +1,7 @@ #include "module.h" +static int initialized = FALSE; + static void perl_main_window_fill_hash(HV *hv, MAIN_WINDOW_REC *window) { hv_store(hv, "active", 6, plain_bless(window->active, "Irssi::UI::Window"), 0); @@ -87,8 +89,6 @@ PROTOTYPES: ENABLE void init() -PREINIT: - static int initialized = FALSE; CODE: if (initialized) return; perl_api_version_check("Irssi::TextUI"); @@ -100,6 +100,7 @@ CODE: void deinit() CODE: + if (!initialized) return; perl_statusbar_deinit(); MODULE = Irssi::TextUI PACKAGE = Irssi |