plugin XEP-0045: fixed isNickInRoom

This commit is contained in:
Goffi 2013-02-20 20:36:09 +01:00
commit b9cd83ac51

View file

@ -140,7 +140,7 @@ class XEP_0045(object):
raise exceptions.UnknownProfileError("Unknown or disconnected profile")
if room_jid.userhost() not in self.clients[profile].joined_rooms:
raise UnknownRoom("This room has not been joined")
return self.clients[profile].joined_rooms[room_jid.userhost()].inRoster(nick)
return self.clients[profile].joined_rooms[room_jid.userhost()].inRoster(muc.User(nick))
def getRoomsSubjects(self, profile_key='@DEFAULT@'):
"""Return received subjects of rooms"""