1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Only send messages in chat mode

This commit is contained in:
James Booth 2012-02-07 23:40:20 +00:00
parent 94e7e5a446
commit ab50d324c4

10
app.c
View File

@ -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();