aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-11-04 00:31:12 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-11-04 00:31:12 +0800
commit03d787f23201acdd662ad24a42c12695e07c4165 (patch)
treed2bbd64d8f2bb07cf30ee490dcbafc6e7abc7933 /libempathy-gtk/empathy-chat.c
parent22c06bcfd832f65fe2de6e44657e22decf2f523d (diff)
downloadgsoc2013-empathy-03d787f23201acdd662ad24a42c12695e07c4165.tar
gsoc2013-empathy-03d787f23201acdd662ad24a42c12695e07c4165.tar.gz
gsoc2013-empathy-03d787f23201acdd662ad24a42c12695e07c4165.tar.bz2
gsoc2013-empathy-03d787f23201acdd662ad24a42c12695e07c4165.tar.lz
gsoc2013-empathy-03d787f23201acdd662ad24a42c12695e07c4165.tar.xz
gsoc2013-empathy-03d787f23201acdd662ad24a42c12695e07c4165.tar.zst
gsoc2013-empathy-03d787f23201acdd662ad24a42c12695e07c4165.zip
Make parsing of commend with no args work again
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r--libempathy-gtk/empathy-chat.c8
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;
}