mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-22 19:45:54 -04:00
Fixed /alias add, when alias already exists
This commit is contained in:
parent
bdfcc81b07
commit
17d3751306
@ -1870,7 +1870,7 @@ cmd_alias(gchar **args, struct cmd_help_t help)
|
|||||||
g_string_free(ac_value, TRUE);
|
g_string_free(ac_value, TRUE);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else if (cmd_exists(ac_value->str)) {
|
} else if (cmd_exists(ac_value->str)) {
|
||||||
cons_show("Command or alias '%s' already exists.");
|
cons_show("Command or alias '%s' already exists.", ac_value->str);
|
||||||
g_string_free(ac_value, TRUE);
|
g_string_free(ac_value, TRUE);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user