I meant to put this down with ticket 19, but forgot. :/
This is an enhancement to the presence class that will make it show the type as available in a repr.
Index: headstock/api/contact.py
===================================================================
--- headstock/api/contact.py (revision 745)
+++ headstock/api/contact.py (working copy)
@@ -22,7 +22,7 @@
self.foreign = []
def repr(self):
- return '<Presence %s (%s) at %s>' % (str(self.from_jid), self.type, hex(id(self)))
+ return '<Presence %s (%s) at %s>' % (str(self.from_jid), self.type or 'available', hex(id(self)))
@staticmethod
def from_element(e):