Mercurial > hg
changeset 1772:c450d1e66c2e
Don't let "/set" show the password with all other variables
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 13 Mar 2010 22:13:43 +0100 |
parents | ffd0f245de40 |
children | 553e7aa88c9f |
files | mcabber/mcabber/commands.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/mcabber/commands.c Sat Mar 13 22:06:22 2010 +0100 +++ b/mcabber/mcabber/commands.c Sat Mar 13 22:13:43 2010 +0100 @@ -2086,8 +2086,10 @@ static void list_option_cb(char *k, char *v, void *f) { - GSList **list = f; - *list = g_slist_insert_sorted(*list, k, (GCompareFunc)strcmp); + if (strcmp(k, "password")) { + GSList **list = f; + *list = g_slist_insert_sorted(*list, k, (GCompareFunc)strcmp); + } } static void do_set(char *arg)