mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
added muc functionality
This commit is contained in:
parent
8d5dbfa691
commit
c239fb1f90
2 changed files with 9 additions and 2 deletions
|
@ -146,7 +146,14 @@ class xep_0045(base.base_plugin):
|
|||
""" Handle a message event in a muc.
|
||||
"""
|
||||
self.xmpp.event('groupchat_message', msg)
|
||||
|
||||
|
||||
def jidInRoom(self, room, jid):
|
||||
for nick in self.rooms[room]:
|
||||
entry = self.rooms[room][nick]
|
||||
if entry is not None and entry['jid'].full == jid:
|
||||
return True
|
||||
return False
|
||||
|
||||
def getRoomForm(self, room, ifrom=None):
|
||||
iq = self.xmpp.makeIqGet()
|
||||
iq['to'] = room
|
||||
|
|
|
@ -202,7 +202,7 @@ class XMLStream(object):
|
|||
def __readXML(self):
|
||||
"Parses the incoming stream, adding to xmlin queue as it goes"
|
||||
#build cElementTree object from expat was we go
|
||||
#self.filesocket = self.socket.makefile('rb', 0)
|
||||
self.filesocket = self.socket.makefile('rb', 0)
|
||||
#print self.filesocket.read(1024) #self.filesocket._sock.recv(1024)
|
||||
edepth = 0
|
||||
root = None
|
||||
|
|
Loading…
Reference in a new issue