Mercurial > ~mikael > mcabber > hg
diff mcabber/src/commands.c @ 1503:c74cfe7fd848
Add option --show-roster to command chat_disable.
This makes it possible to change the Esc binding so that
the roster doesn't automatically comes back when hitting Escape.
(Issue reported by Maxim Vuets)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 23 Aug 2008 21:01:14 +0200 |
parents | 0121b6f3047c |
children | 8a63d4514503 |
line wrap: on
line diff
--- 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)