Created
September 13, 2014 17:36
-
-
Save tsal/8ff13edace66abb95e14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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