[jdev] Data Forms with bots

Andreas Monitzer jdev at monitzer.com
Sun Oct 26 09:15:56 CDT 2008


On Oct 25, 2008, at 08:25, Arne Claassen wrote:

> I'm trying to determine whether XEP-0004 can be used by a bot to send
> data forms to a client. I've tried a couple of things and none have
> resulted in forms, but i don't know whether that is because of my lack
> of understanding of the spec or lack of support in my clients (pidgin
> and Adium)

I was the one who added XMPP forms support to libpurple (and thus,  
pidgin and Adium), but I've never tested push-type forms. This may  
simply be a limitation of my implementation, since I didn't consider  
this to be important (because I didn't have any program that was able  
to do this). Should be easy to fix though.

> Basically is there a way to push a form to a client or if not, how
> would a client request a form from another client?

Forms generated as a reply to ad-hoc commands are supported in  
libpurple. However, pidgin doesn't support the discovery browser (too  
XMPP-specific), so I guess only Adium can actually send ad-hoc  
commands via the browser (you can open it in the account's menu from  
the file menu).

andy




More information about the JDev mailing list