changeset 17529: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 c0c17a81f5fe
children a50f0188896b
files finch/gntconv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntconv.c	Mon May 28 00:21:27 2007 +0000
+++ b/finch/gntconv.c	Tue May 29 21:48:43 2007 +0000
@@ -64,7 +64,7 @@
 send_typing_notification(GntWidget *w, FinchConv *ggconv)
 {
 	const char *text = gnt_entry_get_text(GNT_ENTRY(ggconv->entry));
-	gboolean empty = (!text || !*text);
+	gboolean empty = (!text || !*text || (*text == '/'));
 	if (purple_prefs_get_bool("/finch/conversations/notify_typing")) {
 		PurpleConversation *conv = ggconv->active_conv;
 		PurpleConvIm *im = PURPLE_CONV_IM(conv);