1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

minor: using cons_bad_cmd_usage() instead of the manual handling

Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
This commit is contained in:
Viachaslau Khalikin 2022-09-19 18:08:54 +03:00
parent 6cb6823aed
commit cc7231a43b
No known key found for this signature in database
GPG Key ID: 7569457AA0318285

View File

@ -6984,7 +6984,7 @@ cmd_plugins_install(ProfWin* window, const char* const command, gchar** args)
char* path = NULL;
if (args[1] == NULL) {
cons_show("Please provide a path to the plugin file or directory, see /help plugins");
cons_bad_cmd_usage(command);
return TRUE;
}
@ -7068,7 +7068,7 @@ cmd_plugins_update(ProfWin* window, const char* const command, gchar** args)
char* path;
if (args[1] == NULL) {
cons_show("Please provide a path to the plugin file, see /help plugins");
cons_bad_cmd_usage(command);
return TRUE;
} else {
path = get_expanded_path(args[1]);
@ -7117,7 +7117,7 @@ gboolean
cmd_plugins_uninstall(ProfWin* window, const char* const command, gchar** args)
{
if (args[1] == NULL) {
cons_show("Please specify plugin name, see /help plugins");
cons_bad_cmd_usage(command);
return TRUE;
}