def joinToUserRoom(self, roomID, name, password=''): result, error = self._proto.messages.joinToMUC(JID(roomID), password=password, name=name) if not result: g_messengerEvents.onErrorReceived(error) return result
def onHandlePresenceError(self, jid, pyGlooxTag): self.__handleEvent(GLOOX_EVENT.PRESENCE_ERROR, JID(jid), pyGlooxTag)
def onHandlePresence(self, jid, priority, status, presence, wgexts, mucInfo): self.__handleEvent( GLOOX_EVENT.PRESENCE, JID(jid), Resource(priority, status, presence, makeWGInfoFromPresence(wgexts), makeMucInfo(mucInfo)))