From 8515cef11734613267b1b31f543bca620beac864 Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Tue, 11 May 2010 15:12:13 -0700 Subject: refactored presence tracking and fixed jidInRoom --- sleekxmpp/plugins/xep_0045.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sleekxmpp/plugins/xep_0045.py') 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() -- cgit v1.2.3