2000-10-01 21:46:48 +00:00
|
|
|
#include "module.h"
|
|
|
|
|
|
2001-11-11 22:39:56 +00:00
|
|
|
static int initialized = FALSE;
|
|
|
|
|
|
2002-11-07 17:40:05 +00:00
|
|
|
void perl_expando_init(void);
|
|
|
|
|
void perl_expando_deinit(void);
|
|
|
|
|
|
|
|
|
|
void perl_settings_init(void);
|
|
|
|
|
void perl_settings_deinit(void);
|
|
|
|
|
|
2000-10-01 21:46:48 +00:00
|
|
|
MODULE = Irssi PACKAGE = Irssi
|
|
|
|
|
|
|
|
|
|
PROTOTYPES: ENABLE
|
|
|
|
|
|
2001-10-20 13:19:25 +00:00
|
|
|
void
|
|
|
|
|
init()
|
|
|
|
|
CODE:
|
2001-11-11 22:39:56 +00:00
|
|
|
if (initialized) return;
|
2001-10-20 13:19:25 +00:00
|
|
|
perl_api_version_check("Irssi");
|
2001-11-11 22:39:56 +00:00
|
|
|
initialized = TRUE;
|
|
|
|
|
|
2001-10-21 16:52:36 +00:00
|
|
|
perl_settings_init();
|
2002-10-27 22:30:41 +00:00
|
|
|
perl_expando_init();
|
2001-10-20 13:19:25 +00:00
|
|
|
|
2001-10-20 19:52:07 +00:00
|
|
|
void
|
|
|
|
|
deinit()
|
|
|
|
|
CODE:
|
2001-11-11 22:39:56 +00:00
|
|
|
if (!initialized) return;
|
2002-10-27 22:30:41 +00:00
|
|
|
perl_expando_deinit();
|
2001-10-21 16:52:36 +00:00
|
|
|
perl_settings_deinit();
|
2001-10-20 19:52:07 +00:00
|
|
|
|
|
|
|
|
BOOT:
|
|
|
|
|
irssi_boot(Channel);
|
|
|
|
|
irssi_boot(Core);
|
2002-10-27 22:30:41 +00:00
|
|
|
irssi_boot(Expando);
|
2001-10-20 19:52:07 +00:00
|
|
|
irssi_boot(Ignore);
|
|
|
|
|
irssi_boot(Log);
|
|
|
|
|
irssi_boot(Masks);
|
|
|
|
|
irssi_boot(Query);
|
|
|
|
|
irssi_boot(Rawlog);
|
|
|
|
|
irssi_boot(Server);
|
|
|
|
|
irssi_boot(Settings);
|