diff src/plugins/plugin_xep_0045.py @ 599:8d8a2ad163e2

plugin XEP-0045: fixed isNickInRoom
author Goffi <goffi@goffi.org>
date Wed, 20 Feb 2013 20:36:09 +0100
parents 98a962d0b23c
children 84a6e83157c2
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"""