From 803d8050164eaaefdd52fd4ae967c1e038b3c571 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 14 Aug 2001 00:41:59 +0000 Subject: Module loading updates - /LOAD shows now also the statically loaded modules. You can't /LOAD the same module twice. Syntax changed to /LOAD [], /UNLOAD []. NOTE: all modules now need to call register_module() in their init() function. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1748 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/irc/dcc/fe-dcc.c | 1 + src/fe-common/irc/fe-common-irc.c | 4 +++- src/fe-common/irc/notifylist/fe-notifylist.c | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/fe-common/irc') diff --git a/src/fe-common/irc/dcc/fe-dcc.c b/src/fe-common/irc/dcc/fe-dcc.c index 2989e3ab..afe230ec 100644 --- a/src/fe-common/irc/dcc/fe-dcc.c +++ b/src/fe-common/irc/dcc/fe-dcc.c @@ -139,6 +139,7 @@ void fe_irc_dcc_init(void) command_bind("dcc list", NULL, (SIGNAL_FUNC) cmd_dcc_list); theme_register(fecommon_irc_dcc_formats); + module_register("dcc", "fe-irc"); } void fe_irc_dcc_deinit(void) diff --git a/src/fe-common/irc/fe-common-irc.c b/src/fe-common/irc/fe-common-irc.c index aed6afac..5dfc2a25 100644 --- a/src/fe-common/irc/fe-common-irc.c +++ b/src/fe-common/irc/fe-common-irc.c @@ -85,8 +85,10 @@ void fe_common_irc_init(void) fe_netsplit_init(); fe_netjoin_init(); - fe_irc_modules_init(); settings_check(); + module_register("core", "fe-irc"); + + fe_irc_modules_init(); } void fe_common_irc_deinit(void) diff --git a/src/fe-common/irc/notifylist/fe-notifylist.c b/src/fe-common/irc/notifylist/fe-notifylist.c index 7253a042..b4532fb8 100644 --- a/src/fe-common/irc/notifylist/fe-notifylist.c +++ b/src/fe-common/irc/notifylist/fe-notifylist.c @@ -250,6 +250,8 @@ void fe_irc_notifylist_init(void) signal_add("notifylist unidle", (SIGNAL_FUNC) notifylist_unidle); command_set_options("notify", "list"); + + module_register("notifylist", "fe-irc"); } void fe_irc_notifylist_deinit(void) -- cgit v1.2.3