changeset 597:96831b222903

Code cleanup
author Mikael Berthe <mikael@lilotux.net>
date Tue, 13 Dec 2005 22:20:23 +0100
parents 6c7fd289648f
children a3db3ee8b99e
files mcabber/src/jab_iq.c
diffstat 1 files changed, 1 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/jab_iq.c	Tue Dec 13 22:16:27 2005 +0100
+++ b/mcabber/src/jab_iq.c	Tue Dec 13 22:20:23 2005 +0100
@@ -144,13 +144,6 @@
       }
     }
   }
-
-  /*
-  if (find(jhook.agents.begin(), jhook.agents.end(), DEFAULT_CONFSERV) == jhook.agents.end())
-    jhook.agents.insert(jhook.agents.begin(), agent(DEFAULT_CONFSERV, DEFAULT_CONFSERV,
-                _("Default Jabber conference server"), agent::atGroupchat));
-
-  */
 }
 
 static void handle_iq_result(jconn conn, char *from, xmlnode xmldata)
@@ -158,7 +151,6 @@
   xmlnode x;
   char *p;
   char *ns;
-  int iid;
 
   p = xmlnode_get_attrib(xmldata, "id");
   if (!p) {
@@ -166,8 +158,7 @@
     return;
   }
 
-  iid = atoi(p); // XXX
-  if (iid == s_id) {  // Authentication
+  if (atoi(p) == s_id) {  // Authentication  XXX
     if (jstate == STATE_GETAUTH) {
       if ((x = xmlnode_get_tag(xmldata, "query")) != NULL)
         if (!xmlnode_get_tag(x, "digest")) {