diff options
author | James Booth <boothj5@gmail.com> | 2014-02-15 21:25:13 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-02-15 21:25:13 +0000 |
commit | f010dfb004a44203a16d0a804576223e60ae4a29 (patch) | |
tree | 681e8d65327e5ee1a52a570b3089f29e67b8e8a7 /src | |
parent | 17d3751306d6b13943bf7554042a64efd238ffd8 (diff) | |
download | profani-tty-f010dfb004a44203a16d0a804576223e60ae4a29.tar.gz |
Show message on /alias list when no aliases
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/console.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index d800cd14..e37516aa 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -905,6 +905,11 @@ _cons_show_account(ProfAccount *account) static void _cons_show_aliases(GList *aliases) { + if (aliases == NULL) { + cons_show("No aliases configured."); + return; + } + GList *curr = aliases; if (curr != NULL) { cons_show("Command aliases:"); |