mcabber/src/commands.c
changeset 1503 c74cfe7fd848
parent 1485 0121b6f3047c
child 1506 8a63d4514503
--- a/mcabber/src/commands.c	Sat Aug 23 19:47:49 2008 +0300
+++ b/mcabber/src/commands.c	Sat Aug 23 21:01:14 2008 +0200
@@ -3568,7 +3568,14 @@
 
 static void do_chat_disable(char *arg)
 {
-  readline_disable_chat_mode();
+  guint show_roster;
+
+  if (arg && !strcasecmp(arg, "--show-roster"))
+    show_roster = 1;
+  else
+    show_roster = 0;
+
+  readline_disable_chat_mode(show_roster);
 }
 
 static void do_source(char *arg)