plugin XEP-0045: fixed isNickInRoom
This commit is contained in:
parent
0a1ec5666d
commit
b9cd83ac51
1 changed files with 1 additions and 1 deletions
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue