Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
def join(self, room):
tjid = jid.JID(room)
presence = domish.Element(('jabber:client', 'presence'))
presence['to']=tjid.full()
x = presence.addElement(('http://jabber.org/protocol/muc', 'x'))
history = x.addElement((None, 'history'))
history['seconds'] = '0'
#print presence.toXml()
self.xmlstream.send(presence)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment