1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-21 03:14:16 -04:00

Fix /script reset, which caused crashes (Bug 48)

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3721 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Wouter Coekaerts 2005-03-07 15:37:31 +00:00 committed by coekie
parent bfb951d3be
commit 9124723ce1
4 changed files with 6 additions and 1 deletions

View File

@ -28,6 +28,7 @@ CODE:
if (!initialized) return;
perl_expando_deinit();
perl_settings_deinit();
initialized = FALSE;
BOOT:
irssi_boot(Channel);

View File

@ -1,5 +1,7 @@
#include "module.h"
static int initialized = FALSE;
static void perl_irc_connect_fill_hash(HV *hv, IRC_SERVER_CONNECT_REC *conn)
{
perl_connect_fill_hash(hv, (SERVER_CONNECT_REC *) conn);
@ -161,7 +163,6 @@ PROTOTYPES: ENABLE
void
init()
PREINIT:
static int initialized = FALSE;
int chat_type;
CODE:
if (initialized) return;
@ -198,6 +199,7 @@ CODE:
void
deinit()
CODE:
initialized = FALSE;
BOOT:
irssi_boot(Irc__Channel);

View File

@ -107,6 +107,7 @@ deinit()
CODE:
if (!initialized) return;
perl_statusbar_deinit();
initialized = FALSE;
MODULE = Irssi::TextUI PACKAGE = Irssi

View File

@ -100,6 +100,7 @@ deinit()
CODE:
if (!initialized) return;
perl_themes_deinit();
initialized = FALSE;
BOOT:
irssi_boot(UI__Formats);