Yardbird should support xmpp as well as irc

Bug #454952 reported by Space Hobo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yardbird
New
Low
Unassigned

Bug Description

What it says. The response types should map to whatever twisted uses for jabber, but otherwise it should be a simple clone of bot.py (and these things ought to be renamed/refactored etc).

Space Hobo (spacehobo)
Changed in yardbird:
importance: Undecided → Low
Revision history for this message
Space Hobo (spacehobo) wrote :

Just collecting odd notes here:

 http://xmpp.org/extensions/xep-0045.html

XMPP messages at their core are "message", "presence", or "iq". IQ is a query/response dealio, and requires maintaining state on at least one end (rather like DCC I suppose).

Jabber MUC is descended from Jabber GroupChat 1.0 in a backward-compatible way, so you get these XML documents that look like nested "domish" dictionaries in twisted, and the MUC ones have an "x" tag inside that holds all the stuff that gc1.0 couldn't do.

Wokkel looks interesting, but we'll likely be implementing our own JabberRequest and JabberResponse objects anyway, which should encapsulate the details of the events a little better. Ideally I'd like for the basic message/action/notice type events to appear identical, so that a module can work for both.

Revision history for this message
Space Hobo (spacehobo) wrote :
Revision history for this message
Space Hobo (spacehobo) wrote :

"Jabber supports the IRC convention of allowing "emote" messages. These allow a person to send a message that looks like an action (such as a stage direction) rather than a quote. Your client can recognize an emote message by the prefix "/me "; this should be replaced with the person's [nick]name before displaying it."

So I guess that's encoded in the payload, then. Bizarre.

Revision history for this message
Space Hobo (spacehobo) wrote :

Just to keep spamming anyone subscribed, I got the above from http://www.akeni.com/en/support/jabberclientcheatsheet.php

Revision history for this message
Space Hobo (spacehobo) wrote :

The "roster" presence spams actually help us, since they map rather nicely to the way we already keep track of oper status in IRC by doing WHO requests every time we notice a join, part, or mode change. Should work well with the @require_chanop decorator stuff.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.