From ab50d324c418368eaffeb7d1e9d002e1319e48b1 Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 7 Feb 2012 23:40:20 +0000 Subject: [PATCH] Only send messages in chat mode --- app.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app.c b/app.c index 7830c3b2..70bdb998 100644 --- a/app.c +++ b/app.c @@ -91,9 +91,13 @@ static void main_event_loop(void) } inp_clear(); } else { - jabber_send(command); - show_outgoing_msg("me", command); - if (showing == CHAT) { + if (showing == CONS) { + cons_bad_command(command); + cons_show(); + } + else { + jabber_send(command); + show_outgoing_msg("me", command); chat_show(); } inp_clear();