mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #72 from ailin-nemui/load-silent-doc
add -silent switch in syntax comment and respect it without args
This commit is contained in:
commit
06a7dcad99
@ -164,7 +164,7 @@ static void module_prefixes_free(char **list)
|
|||||||
g_free(list);
|
g_free(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* SYNTAX: LOAD <module> [<submodule>] */
|
/* SYNTAX: LOAD [-silent] <module> [<submodule>] */
|
||||||
static void cmd_load(const char *data)
|
static void cmd_load(const char *data)
|
||||||
{
|
{
|
||||||
char *rootmodule, *submodule;
|
char *rootmodule, *submodule;
|
||||||
@ -181,9 +181,11 @@ static void cmd_load(const char *data)
|
|||||||
|
|
||||||
silent = g_hash_table_lookup(optlist, "silent") != NULL;
|
silent = g_hash_table_lookup(optlist, "silent") != NULL;
|
||||||
|
|
||||||
if (*rootmodule == '\0')
|
if (*rootmodule == '\0') {
|
||||||
|
if (!silent) {
|
||||||
cmd_load_list();
|
cmd_load_list();
|
||||||
else {
|
}
|
||||||
|
} else {
|
||||||
if (silent) {
|
if (silent) {
|
||||||
signal_add_first("module error", (SIGNAL_FUNC) signal_stop);
|
signal_add_first("module error", (SIGNAL_FUNC) signal_stop);
|
||||||
signal_add_first("module loaded", (SIGNAL_FUNC) signal_stop);
|
signal_add_first("module loaded", (SIGNAL_FUNC) signal_stop);
|
||||||
|
Loading…
Reference in New Issue
Block a user