mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 01:56:22 +00:00
Show message when alias already exists in /alias add
This commit is contained in:
@@ -1834,8 +1834,11 @@ cmd_alias(gchar **args, struct cmd_help_t help)
|
||||
cons_show("Usage: %s", help.usage);
|
||||
return TRUE;
|
||||
} else {
|
||||
prefs_add_alias(alias, value);
|
||||
cons_show("Command alias added /%s -> %s", alias, value);
|
||||
if (prefs_add_alias(alias, value) == TRUE) {
|
||||
cons_show("Command alias added /%s -> %s", alias, value);
|
||||
} else {
|
||||
cons_show("Command alias /%s already exists.", alias);
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user