# HG changeset patch # User Mikael Berthe # Date 1268514823 -3600 # Node ID c450d1e66c2e322436e1f294f122711b6da4efe1 # Parent ffd0f245de405832f4a56331afc5c6f4e0ccb8cf Don't let "/set" show the password with all other variables diff -r ffd0f245de40 -r c450d1e66c2e mcabber/mcabber/commands.c --- 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)