forked from PsychoticNinja/irssi
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:
parent
bfb951d3be
commit
9124723ce1
@ -28,6 +28,7 @@ CODE:
|
|||||||
if (!initialized) return;
|
if (!initialized) return;
|
||||||
perl_expando_deinit();
|
perl_expando_deinit();
|
||||||
perl_settings_deinit();
|
perl_settings_deinit();
|
||||||
|
initialized = FALSE;
|
||||||
|
|
||||||
BOOT:
|
BOOT:
|
||||||
irssi_boot(Channel);
|
irssi_boot(Channel);
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include "module.h"
|
#include "module.h"
|
||||||
|
|
||||||
|
static int initialized = FALSE;
|
||||||
|
|
||||||
static void perl_irc_connect_fill_hash(HV *hv, IRC_SERVER_CONNECT_REC *conn)
|
static void perl_irc_connect_fill_hash(HV *hv, IRC_SERVER_CONNECT_REC *conn)
|
||||||
{
|
{
|
||||||
perl_connect_fill_hash(hv, (SERVER_CONNECT_REC *) conn);
|
perl_connect_fill_hash(hv, (SERVER_CONNECT_REC *) conn);
|
||||||
@ -161,7 +163,6 @@ PROTOTYPES: ENABLE
|
|||||||
void
|
void
|
||||||
init()
|
init()
|
||||||
PREINIT:
|
PREINIT:
|
||||||
static int initialized = FALSE;
|
|
||||||
int chat_type;
|
int chat_type;
|
||||||
CODE:
|
CODE:
|
||||||
if (initialized) return;
|
if (initialized) return;
|
||||||
@ -198,6 +199,7 @@ CODE:
|
|||||||
void
|
void
|
||||||
deinit()
|
deinit()
|
||||||
CODE:
|
CODE:
|
||||||
|
initialized = FALSE;
|
||||||
|
|
||||||
BOOT:
|
BOOT:
|
||||||
irssi_boot(Irc__Channel);
|
irssi_boot(Irc__Channel);
|
||||||
|
@ -107,6 +107,7 @@ deinit()
|
|||||||
CODE:
|
CODE:
|
||||||
if (!initialized) return;
|
if (!initialized) return;
|
||||||
perl_statusbar_deinit();
|
perl_statusbar_deinit();
|
||||||
|
initialized = FALSE;
|
||||||
|
|
||||||
MODULE = Irssi::TextUI PACKAGE = Irssi
|
MODULE = Irssi::TextUI PACKAGE = Irssi
|
||||||
|
|
||||||
|
@ -100,6 +100,7 @@ deinit()
|
|||||||
CODE:
|
CODE:
|
||||||
if (!initialized) return;
|
if (!initialized) return;
|
||||||
perl_themes_deinit();
|
perl_themes_deinit();
|
||||||
|
initialized = FALSE;
|
||||||
|
|
||||||
BOOT:
|
BOOT:
|
||||||
irssi_boot(UI__Formats);
|
irssi_boot(UI__Formats);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user