diff options
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index e96c02db2..dc4ab7fee 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -891,9 +891,13 @@ chat_send (EmpathyChat *chat, for (i = 0; i < G_N_ELEMENTS (commands); i++) { GStrv strv; guint strv_len; + gchar c; - if (!has_prefix_case (msg + 1, commands[i].prefix) || - !g_ascii_isspace (msg + 1 + strlen (commands[i].prefix))) { + if (!has_prefix_case (msg + 1, commands[i].prefix)) { + continue; + } + c = *(msg + 1 + strlen (commands[i].prefix)); + if (c != '\0' && !g_ascii_isspace (c)) { continue; } |