diff options
Diffstat (limited to 'src/perl/irc')
-rw-r--r-- | src/perl/irc/Irc.xs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/perl/irc/Irc.xs b/src/perl/irc/Irc.xs index 3ccce9aa..ed472680 100644 --- a/src/perl/irc/Irc.xs +++ b/src/perl/irc/Irc.xs @@ -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); |