Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/disco.c @ 17609:f88b3a093cba
Implemented ad-hoc commands for the buddy action menu (untested), implemented the receiving end of XEP-0115: Entity Capabilities. Note that this seems not to be reliable right now, since some clients seem to have a very broken [read: completely non-functional] implementation (most notably Gajim and the py-transports).
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Sat, 23 Jun 2007 02:57:21 +0000 |
parents | e49b259fc7dd |
children | 9a19c46adf66 |
comparison
equal
deleted
inserted
replaced
17608:a8b1159fd95b | 17609:f88b3a093cba |
---|---|
29 #include "disco.h" | 29 #include "disco.h" |
30 #include "jabber.h" | 30 #include "jabber.h" |
31 #include "presence.h" | 31 #include "presence.h" |
32 #include "roster.h" | 32 #include "roster.h" |
33 #include "pep.h" | 33 #include "pep.h" |
34 #include "adhoccommands.h" | |
35 | |
34 | 36 |
35 struct _jabber_disco_info_cb_data { | 37 struct _jabber_disco_info_cb_data { |
36 gpointer data; | 38 gpointer data; |
37 JabberDiscoInfoCallback *callback; | 39 JabberDiscoInfoCallback *callback; |
38 }; | 40 }; |
208 capabilities |= JABBER_CAP_IQ_SEARCH; | 210 capabilities |= JABBER_CAP_IQ_SEARCH; |
209 else if(!strcmp(var, "jabber:iq:register")) | 211 else if(!strcmp(var, "jabber:iq:register")) |
210 capabilities |= JABBER_CAP_IQ_REGISTER; | 212 capabilities |= JABBER_CAP_IQ_REGISTER; |
211 else if(!strcmp(var, "http://www.xmpp.org/extensions/xep-0199.html#ns")) | 213 else if(!strcmp(var, "http://www.xmpp.org/extensions/xep-0199.html#ns")) |
212 capabilities |= JABBER_CAP_PING; | 214 capabilities |= JABBER_CAP_PING; |
215 else if(!strcmp(var, "http://jabber.org/protocol/commands")) { | |
216 capabilities |= JABBER_CAP_ADHOC; | |
217 } | |
213 } | 218 } |
214 } | 219 } |
215 | 220 |
216 capabilities |= JABBER_CAP_RETRIEVED; | 221 capabilities |= JABBER_CAP_RETRIEVED; |
217 | 222 |