mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -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:
parent
6cb6823aed
commit
cc7231a43b
@ -6984,7 +6984,7 @@ cmd_plugins_install(ProfWin* window, const char* const command, gchar** args)
|
|||||||
char* path = NULL;
|
char* path = NULL;
|
||||||
|
|
||||||
if (args[1] == 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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7068,7 +7068,7 @@ cmd_plugins_update(ProfWin* window, const char* const command, gchar** args)
|
|||||||
char* path;
|
char* path;
|
||||||
|
|
||||||
if (args[1] == NULL) {
|
if (args[1] == NULL) {
|
||||||
cons_show("Please provide a path to the plugin file, see /help plugins");
|
cons_bad_cmd_usage(command);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else {
|
} else {
|
||||||
path = get_expanded_path(args[1]);
|
path = get_expanded_path(args[1]);
|
||||||
@ -7117,7 +7117,7 @@ gboolean
|
|||||||
cmd_plugins_uninstall(ProfWin* window, const char* const command, gchar** args)
|
cmd_plugins_uninstall(ProfWin* window, const char* const command, gchar** args)
|
||||||
{
|
{
|
||||||
if (args[1] == NULL) {
|
if (args[1] == NULL) {
|
||||||
cons_show("Please specify plugin name, see /help plugins");
|
cons_bad_cmd_usage(command);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user