changeset 599:8d8a2ad163e2

plugin XEP-0045: fixed isNickInRoom
author Goffi <goffi@goffi.org>
date Wed, 20 Feb 2013 20:36:09 +0100
parents af900f49df89
children c5451501465b
files src/plugins/plugin_xep_0045.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0045.py	Wed Feb 20 20:08:15 2013 +0100
+++ b/src/plugins/plugin_xep_0045.py	Wed Feb 20 20:36:09 2013 +0100
@@ -140,7 +140,7 @@
             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"""