diff options
author | Nathan Fritz <nathan@andyet.net> | 2010-03-04 09:47:42 -0800 |
---|---|---|
committer | Nathan Fritz <nathan@andyet.net> | 2010-03-04 09:47:42 -0800 |
commit | c239fb1f90ba794abfc142e5b1043a4110dcb754 (patch) | |
tree | b6520129d2ab8d7ad2e4545a0b4ab198a4326535 /sleekxmpp/plugins/xep_0045.py | |
parent | 8d5dbfa691f17118173d4eaeca8222826e6a6dc5 (diff) | |
download | slixmpp-c239fb1f90ba794abfc142e5b1043a4110dcb754.tar.gz slixmpp-c239fb1f90ba794abfc142e5b1043a4110dcb754.tar.bz2 slixmpp-c239fb1f90ba794abfc142e5b1043a4110dcb754.tar.xz slixmpp-c239fb1f90ba794abfc142e5b1043a4110dcb754.zip |
added muc functionality
Diffstat (limited to 'sleekxmpp/plugins/xep_0045.py')
-rw-r--r-- | sleekxmpp/plugins/xep_0045.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0045.py b/sleekxmpp/plugins/xep_0045.py index 82737421..d530a0ab 100644 --- a/sleekxmpp/plugins/xep_0045.py +++ b/sleekxmpp/plugins/xep_0045.py @@ -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 |