[asterisk-commits] branch mogorman/asterisk-xmpp r24834 - /team/mogorman/asterisk-xmpp/res/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 4 20:35:40 MST 2006


Author: mogorman
Date: Thu May  4 22:35:40 2006
New Revision: 24834

URL: http://svn.digium.com/view/asterisk?rev=24834&view=rev
Log:
ooh soon have working support for psi too

Modified:
    team/mogorman/asterisk-xmpp/res/res_jabber.c

Modified: team/mogorman/asterisk-xmpp/res/res_jabber.c
URL: http://svn.digium.com/view/asterisk/team/mogorman/asterisk-xmpp/res/res_jabber.c?rev=24834&r1=24833&r2=24834&view=diff
==============================================================================
--- team/mogorman/asterisk-xmpp/res/res_jabber.c (original)
+++ team/mogorman/asterisk-xmpp/res/res_jabber.c Thu May  4 22:35:40 2006
@@ -167,17 +167,10 @@
 {
 	iks *tmp= node;
 	iks *next = tmp;
-	while(tmp) {
-		while(next)
-		{
-			if(iks_find_attrib(next,"node"))
-				if(!strcasecmp("http://www.google.com/xmpp/client/caps",iks_find_attrib(next,"node")))
-					return 1;
-			next=iks_next(next);
-		}
-		tmp=iks_child(tmp);
-		next=tmp;
-	}
+	if(iks_find_with_attrib(node,"c","node","http://www.google.com/xmpp/client/caps"))
+		return 1;
+	if(iks_find_with_attrib(node,"c","node","http://psi-im.org/caps"))
+		return 1;
 	return 0;
 }
 /*!



More information about the asterisk-commits mailing list