Introduce /reload command
This command reloads the configuration file. Fix https://github.com/profanity-im/profanity/issues/627
This commit is contained in:
@@ -8551,3 +8551,12 @@ cmd_save(ProfWin *window, const char *const command, gchar **args)
|
||||
prefs_save();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
cmd_reload(ProfWin *window, const char *const command, gchar **args)
|
||||
{
|
||||
log_info("Reloading preferences");
|
||||
cons_show("Reloading preferences.");
|
||||
prefs_reload();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user