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/core/module-formats.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/fe-common/core/module-formats.c') diff --git a/src/fe-common/core/module-formats.c b/src/fe-common/core/module-formats.c index 46fe4de0..dbb8bb3e 100644 --- a/src/fe-common/core/module-formats.c +++ b/src/fe-common/core/module-formats.c @@ -179,14 +179,15 @@ FORMAT_REC fecommon_core_formats[] = { /* ---- */ { NULL, "Modules", 0 }, - { "module_header", "Loaded modules:", 0, }, - { "module_line", " $0", 1, { 0 } }, + { "module_header", "Module Type Submodules", 0, }, + { "module_line", "$[!20]0 $[7]1 $2", 3, { 0, 0, 0 } }, { "module_footer", "", 0, }, - { "module_already_loaded", "Module {hilight $0} already loaded", 1, { 0 } }, - { "module_load_error", "Error loading module {hilight $0}: $1", 2, { 0, 0 } }, - { "module_invalid", "{hilight $0} isn't Irssi module", 1, { 0 } }, - { "module_loaded", "Loaded module {hilight $0}", 1, { 0 } }, - { "module_unloaded", "Unloaded module {hilight $0}", 1, { 0 } }, + { "module_already_loaded", "Module {hilight $0/$1} already loaded", 2, { 0, 0 } }, + { "module_not_loaded", "Module {hilight $0/$1} is not loaded", 2, { 0, 0 } }, + { "module_load_error", "Error loading module {hilight $0/$1}: $2", 3, { 0, 0, 0 } }, + { "module_invalid", "{hilight $0/$1} isn't Irssi module", 2, { 0, 0 } }, + { "module_loaded", "Loaded module {hilight $0/$1}", 2, { 0, 0 } }, + { "module_unloaded", "Unloaded module {hilight $0/$1}", 2, { 0, 0 } }, /* ---- */ { NULL, "Commands", 0 }, -- cgit v1.2.3