[PATCH] Fix empathy+xmpp



Index: engine-dbus/hippo-dbus-empathy.c
===================================================================
--- engine-dbus/hippo-dbus-empathy.c	(revision 7287)
+++ engine-dbus/hippo-dbus-empathy.c	(working copy)
@@ -10,12 +10,18 @@
     EmpathyAvatar *avatar;
     McAccount *account;
     McProfile *profile;
+    const char *protocol;

     account = empathy_contact_get_account(contact);
     profile = mc_account_get_profile(account);

+    protocol = mc_profile_get_protocol_name(profile);
+    if (strcmp(protocol, "jabber") == 0) {
+        protocol = "xmpp";
+    }
+
     hippo_im_update_buddy(empathy_contact_get_id(contact),
-                          mc_profile_get_protocol_name(profile),
+                          protocol,
                           empathy_contact_get_name(contact),
                           NULL, /* alias */
                           empathy_contact_is_online(contact),


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