added muc functionality

This commit is contained in:
Nathan Fritz
2010-03-04 09:47:42 -08:00
parent 8d5dbfa691
commit c239fb1f90
2 changed files with 9 additions and 2 deletions

View File

@@ -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