comparison finch/gntconv.c @ 17813:289ac53f753f

Do not send typing notification if you are typing a /-command.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 29 May 2007 21:48:43 +0000
parents 319bcb73eb4e
children f63b3a23280d
comparison
equal deleted inserted replaced
17812:c0c17a81f5fe 17813:289ac53f753f
62 62
63 static void 63 static void
64 send_typing_notification(GntWidget *w, FinchConv *ggconv) 64 send_typing_notification(GntWidget *w, FinchConv *ggconv)
65 { 65 {
66 const char *text = gnt_entry_get_text(GNT_ENTRY(ggconv->entry)); 66 const char *text = gnt_entry_get_text(GNT_ENTRY(ggconv->entry));
67 gboolean empty = (!text || !*text); 67 gboolean empty = (!text || !*text || (*text == '/'));
68 if (purple_prefs_get_bool("/finch/conversations/notify_typing")) { 68 if (purple_prefs_get_bool("/finch/conversations/notify_typing")) {
69 PurpleConversation *conv = ggconv->active_conv; 69 PurpleConversation *conv = ggconv->active_conv;
70 PurpleConvIm *im = PURPLE_CONV_IM(conv); 70 PurpleConvIm *im = PURPLE_CONV_IM(conv);
71 if (!empty) { 71 if (!empty) {
72 gboolean send = (purple_conv_im_get_send_typed_timeout(im) == 0); 72 gboolean send = (purple_conv_im_get_send_typed_timeout(im) == 0);