summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0045.py
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-05-11 15:12:13 -0700
committerNathan Fritz <nathan@andyet.net>2010-05-11 15:12:13 -0700
commit8515cef11734613267b1b31f543bca620beac864 (patch)
tree0a20647846cd46a886cf093306d34b90781fd176 /sleekxmpp/plugins/xep_0045.py
parent9d76e7353a9654d20be617e12fbaf329b5908794 (diff)
downloadslixmpp-8515cef11734613267b1b31f543bca620beac864.tar.gz
slixmpp-8515cef11734613267b1b31f543bca620beac864.tar.bz2
slixmpp-8515cef11734613267b1b31f543bca620beac864.tar.xz
slixmpp-8515cef11734613267b1b31f543bca620beac864.zip
refactored presence tracking and fixed jidInRoom
Diffstat (limited to 'sleekxmpp/plugins/xep_0045.py')
-rw-r--r--sleekxmpp/plugins/xep_0045.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/sleekxmpp/plugins/xep_0045.py b/sleekxmpp/plugins/xep_0045.py
index 7fc8a2bf..240e6b9a 100644
--- a/sleekxmpp/plugins/xep_0045.py
+++ b/sleekxmpp/plugins/xep_0045.py
@@ -147,12 +147,12 @@ class xep_0045(base.base_plugin):
"""
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 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()