/soc/2012/sanket/statscollector-2.x.y: bf6a0f8994e5: [BUGFIX] Re...

sanket sanket at soc.pidgin.im
Sun Aug 12 09:20:58 EDT 2012


Changeset: bf6a0f8994e535c7abe7cd52e327640594499571
Author:	 sanket <sanket at soc.pidgin.im>
Date:	 2012-08-12 06:19 +0530
Branch:	 soc.2012.statscollector
URL: http://hg.pidgin.im/soc/2012/sanket/statscollector-2.x.y/rev/bf6a0f8994e5

Description:

[BUGFIX] Remove additional plugin info as it breaks server

diffstat:

 libpurple/plugins/statscollector.c |  33 ++++++++++++++++-----------------
 1 files changed, 16 insertions(+), 17 deletions(-)

diffs (54 lines):

diff --git a/libpurple/plugins/statscollector.c b/libpurple/plugins/statscollector.c
--- a/libpurple/plugins/statscollector.c
+++ b/libpurple/plugins/statscollector.c
@@ -773,8 +773,7 @@ plugin_load_event(PurplePlugin *plugin){
    */
 
   const char *id, *name, *version, *author, *summary, *description, *data;
-  xmlnode *plugin_xml, *name_xml, *v_xml, *author_xml, *summary_xml, \
-    *description_xml;
+  xmlnode *plugin_xml;
   PurplePluginType plugin_type;
 
   id = purple_plugin_get_id(plugin);
@@ -800,25 +799,25 @@ plugin_load_event(PurplePlugin *plugin){
     plugin_xml = xmlnode_new("plugin");
     xmlnode_set_attrib(plugin_xml, "id", id);
 
-    name_xml = xmlnode_new("name");
-    xmlnode_insert_data(name_xml, name, -1);
-    xmlnode_insert_child(plugin_xml, name_xml);
+    /* name_xml = xmlnode_new("name"); */
+    /* xmlnode_insert_data(name_xml, name, -1); */
+    /* xmlnode_insert_child(plugin_xml, name_xml); */
 
-    v_xml = xmlnode_new("version");
-    xmlnode_insert_data(v_xml, version, -1);
-    xmlnode_insert_child(plugin_xml, v_xml);
+    /* v_xml = xmlnode_new("version"); */
+    /* xmlnode_insert_data(v_xml, version, -1); */
+    /* xmlnode_insert_child(plugin_xml, v_xml); */
 
-    author_xml = xmlnode_new("author");
-    xmlnode_insert_data(author_xml, author, -1);
-    xmlnode_insert_child(plugin_xml, author_xml);
+    /* author_xml = xmlnode_new("author"); */
+    /* xmlnode_insert_data(author_xml, author, -1); */
+    /* xmlnode_insert_child(plugin_xml, author_xml); */
 
-    summary_xml = xmlnode_new("summary");
-    xmlnode_insert_data(summary_xml, summary, -1);
-    xmlnode_insert_child(plugin_xml, summary_xml);
+    /* summary_xml = xmlnode_new("summary"); */
+    /* xmlnode_insert_data(summary_xml, summary, -1); */
+    /* xmlnode_insert_child(plugin_xml, summary_xml); */
 
-    description_xml = xmlnode_new("description");
-    xmlnode_insert_data(description_xml, description, -1);
-    xmlnode_insert_child(plugin_xml, description_xml);
+    /* description_xml = xmlnode_new("description"); */
+    /* xmlnode_insert_data(description_xml, description, -1); */
+    /* xmlnode_insert_child(plugin_xml, description_xml); */
 
     data = xmlnode_to_str(plugin_xml, NULL);
     g_hash_table_insert(stats_plugins_ht, (void *)id, (void *)data);



More information about the Commits mailing list