jingle/jingle.c
changeset 159 1df5f5e3f1e7
parent 152 a8623ca21574
child 161 fa1d993d05b6
--- a/jingle/jingle.c	Wed Aug 25 01:27:46 2010 +0200
+++ b/jingle/jingle.c	Wed Aug 25 17:15:49 2010 +0200
@@ -30,6 +30,7 @@
 #include <mcabber/logprint.h>
 #include <mcabber/xmpp_helper.h>
 #include <mcabber/events.h>
+#include <mcabber/caps.h>
 
 #include <jingle/jingle.h>
 #include <jingle/check.h>
@@ -356,8 +357,9 @@
   for (thisres = reslist; thisres; thisres = g_slist_next(thisres)) {
     found = TRUE;
     for (indexns = 0; ns[indexns]; indexns++) {
-	  // if (!caps_has_feature(buddy_resource_getcaps(roster_usr->data, thisres->data), ns[indexns]))
-	   //  found = FALSE;
+      gchar *tmp = buddy_resource_getcaps(roster_usr->data, thisres->data);
+      if (!caps_has_feature(tmp, (gchar *)ns[indexns]))
+        found = FALSE;
 	 }
 	 if (!found) continue;