diff mcabber/mcabber/commands.c @ 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 61f0482d3993
children dc4bd31c2254
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)