Update interface.c to avoid error messages

When hitting enter (without writing anything) in an chat prompt always appears an error message telling you that the message is empty.
Checking the content of the line can avoid this.
I don't know is this behaviour is wrong or right.
So please forgive me if it doesn’t make sense.
This commit is contained in:
Falk 2014-02-13 00:52:25 +01:00
parent 4adfddd589
commit d19c4c1294

View File

@ -576,7 +576,9 @@ void interpreter_chat_mode (char *line) {
do_mark_read (chat_mode_id); do_mark_read (chat_mode_id);
return; return;
} }
do_send_message (chat_mode_id, line, strlen (line)); if (strlen (line)>0) {
do_send_message (chat_mode_id, line, strlen (line));
}
} }
void interpreter (char *line UU) { void interpreter (char *line UU) {