Mercurial > ~mikael > mcabber > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
1502:50dbbca69b55 | 1503:c74cfe7fd848 |
---|---|
3566 readline_refresh_screen(); | 3566 readline_refresh_screen(); |
3567 } | 3567 } |
3568 | 3568 |
3569 static void do_chat_disable(char *arg) | 3569 static void do_chat_disable(char *arg) |
3570 { | 3570 { |
3571 readline_disable_chat_mode(); | 3571 guint show_roster; |
3572 | |
3573 if (arg && !strcasecmp(arg, "--show-roster")) | |
3574 show_roster = 1; | |
3575 else | |
3576 show_roster = 0; | |
3577 | |
3578 readline_disable_chat_mode(show_roster); | |
3572 } | 3579 } |
3573 | 3580 |
3574 static void do_source(char *arg) | 3581 static void do_source(char *arg) |
3575 { | 3582 { |
3576 static int recur_level; | 3583 static int recur_level; |