[empathy: 1/5] /clearly shouldn't clear the window.



commit cd9d7d1ef951ab85bf87e7ff56b1180169d053c2
Author: Will Thompson <will thompson collabora co uk>
Date:   Wed Aug 26 19:46:20 2009 +0100

    /clearly shouldn't clear the window.

 libempathy-gtk/empathy-chat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index 9096bee..118baff 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -391,7 +391,7 @@ chat_send (EmpathyChat  *chat,
 
 	chat_sent_message_add (chat, msg);
 
-	if (g_str_has_prefix (msg, "/clear")) {
+	if (strcmp (msg, "/clear") == 0) {
 		empathy_chat_view_clear (chat->view);
 		return;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]