Introduce /reload command
This command reloads the configuration file. Fix https://github.com/profanity-im/profanity/issues/627
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user