# HG changeset patch # User Sean Egan # Date 1189469402 0 # Node ID 36d5d5048b535cbee29be3fcb4ebec0c56c640df # Parent eedf2918aace551f32bdb9fc8a1f7b02a426a884 Dont spam the buddy info window with esoteric capabilities diff -r eedf2918aace -r 36d5d5048b53 libpurple/protocols/jabber/buddy.c --- a/libpurple/protocols/jabber/buddy.c Mon Sep 10 23:54:49 2007 +0000 +++ b/libpurple/protocols/jabber/buddy.c Tue Sep 11 00:10:02 2007 +0000 @@ -799,6 +799,12 @@ purple_notify_user_info_add_pair(user_info, _("Operating System"), jbr->client.os); } } +#if 0 + /* #if 0 this for now; I think this would be far more useful if we limited this to a particular set of features + * of particular interest (-vv jumps out as one). As it is now, I don't picture people getting all excited: "Oh sweet crap! + * So-and-so supports 'jabber:x:data' AND 'Collaborative Data Objects'!" + */ + if(jbr && jbr->caps) { GString *tmp = g_string_new(""); GList *iter; @@ -907,15 +913,16 @@ feature = _("Hop Check"); else if(g_str_has_suffix(feature, "+notify")) feature = NULL; - if(feature) - g_string_append_printf(tmp, "%s\n", feature); + g_string_append_printf(tmp, "%s
", feature); } + if(strlen(tmp->str) > 0) purple_notify_user_info_add_pair(user_info, _("Capabilities"), tmp->str); g_string_free(tmp, TRUE); } +#endif } else { for(resources = jbi->jb->resources; resources; resources = resources->next) { char *purdy = NULL; @@ -957,6 +964,7 @@ purple_notify_user_info_add_pair(user_info, _("Operating System"), jbr->client.os); } } +#if 0 if(jbr && jbr->caps) { GString *tmp = g_string_new(""); GList *iter; @@ -1074,6 +1082,7 @@ g_string_free(tmp, TRUE); } +#endif } }