Introduce /reload command

This command reloads the configuration file.

Fix https://github.com/profanity-im/profanity/issues/627
This commit is contained in:
Michael Vetter
2019-10-04 14:06:25 +02:00
parent 523681a642
commit 5c77b97c35
5 changed files with 58 additions and 18 deletions

View File

@@ -2408,6 +2408,19 @@ static struct cmd_t command_defs[] =
CMD_NOARGS
CMD_NOEXAMPLES
},
{ "/reload",
parse_args, 0, 0, NULL,
CMD_NOSUBFUNCS
CMD_MAINFUNC(cmd_reload)
CMD_NOTAGS
CMD_SYN(
"/reload")
CMD_DESC(
"Reload preferences from configuration file.")
CMD_NOARGS
CMD_NOEXAMPLES
},
};
static GHashTable *search_index;