1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

/LOAD notifies that dynamic modules aren't supported instead of being quiet

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1493 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-05-14 15:20:15 +00:00 committed by cras
parent ede1f24ef8
commit 33baf1d618

View File

@ -111,6 +111,7 @@ static void module_prefixes_free(char **list)
/* SYNTAX: LOAD <module> */ /* SYNTAX: LOAD <module> */
static void cmd_load(const char *data) static void cmd_load(const char *data)
{ {
#ifdef HAVE_GMODULE
char **module_prefixes; char **module_prefixes;
g_return_if_fail(data != NULL); g_return_if_fail(data != NULL);
@ -121,6 +122,10 @@ static void cmd_load(const char *data)
module_load(data, module_prefixes); module_load(data, module_prefixes);
module_prefixes_free(module_prefixes); module_prefixes_free(module_prefixes);
} }
#else
printtext(NULL, NULL, MSGLEVEL_CLIENTERROR,
"Dynamic modules loading not supported");
#endif
} }
/* SYNTAX: UNLOAD <module> */ /* SYNTAX: UNLOAD <module> */