[empathy: 9/9] Disable /query and /msg commands for now (#624268)



commit f28debea9fe92f32a0faa9954af06cab15825df3
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Jul 14 11:32:02 2010 +0200

    Disable /query and /msg commands for now (#624268)
    
    This avoid to crash while bug 623682 hasn't been fixed.

 libempathy-gtk/empathy-chat.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index 17a742c..edb1329 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -632,6 +632,7 @@ typedef struct {
 	gchar *message;
 } ChatCommandMsgData;
 
+#if 0
 static void
 chat_command_msg_cb (EmpathyDispatchOperation *dispatch,
 			      const GError             *error,
@@ -661,6 +662,7 @@ OUT:
 	g_free (data->message);
 	g_slice_free (ChatCommandMsgData, data);
 }
+#endif
 
 static void
 chat_command_clear (EmpathyChat *chat,
@@ -722,6 +724,7 @@ chat_command_join (EmpathyChat *chat,
 	g_strfreev (rooms);
 }
 
+#if 0
 static void
 chat_command_msg_internal (EmpathyChat *chat,
 			   const gchar *contact_id,
@@ -758,6 +761,7 @@ chat_command_msg (EmpathyChat *chat,
 {
 	chat_command_msg_internal (chat, strv[1], strv[2]);
 }
+#endif
 
 static void
 chat_command_nick (EmpathyChat *chat,
@@ -829,11 +833,14 @@ static ChatCommandItem commands[] = {
 	{"j", 2, 2, chat_command_join,
 	 N_("/j <chat room ID>: join a new chat room")},
 
+#if 0
+/* FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=623682 */
 	{"query", 2, 3, chat_command_query,
 	 N_("/query <contact ID> [<message>]: open a private chat")},
 
 	{"msg", 3, 3, chat_command_msg,
 	 N_("/msg <contact ID> <message>: open a private chat")},
+#endif
 
 	{"nick", 2, 2, chat_command_nick,
 	 N_("/nick <nickname>: change your nickname on the current server")},



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