Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/disco.c Fri Jun 22 11:52:50 2007 +0000 +++ b/libpurple/protocols/jabber/disco.c Sat Jun 23 02:57:21 2007 +0000 @@ -31,6 +31,8 @@ #include "presence.h" #include "roster.h" #include "pep.h" +#include "adhoccommands.h" + struct _jabber_disco_info_cb_data { gpointer data; @@ -210,6 +212,9 @@ capabilities |= JABBER_CAP_IQ_REGISTER; else if(!strcmp(var, "http://www.xmpp.org/extensions/xep-0199.html#ns")) capabilities |= JABBER_CAP_PING; + else if(!strcmp(var, "http://jabber.org/protocol/commands")) { + capabilities |= JABBER_CAP_ADHOC; + } } }