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

Show message on /alias list when no aliases

This commit is contained in:
James Booth 2014-02-15 21:25:13 +00:00
parent 17d3751306
commit f010dfb004

View File

@ -905,6 +905,11 @@ _cons_show_account(ProfAccount *account)
static void static void
_cons_show_aliases(GList *aliases) _cons_show_aliases(GList *aliases)
{ {
if (aliases == NULL) {
cons_show("No aliases configured.");
return;
}
GList *curr = aliases; GList *curr = aliases;
if (curr != NULL) { if (curr != NULL) {
cons_show("Command aliases:"); cons_show("Command aliases:");