From b9cd83ac518532df8acb3842738daf4d00b9f217 Mon Sep 17 00:00:00 2001 From: Goffi Date: Wed, 20 Feb 2013 20:36:09 +0100 Subject: [PATCH] plugin XEP-0045: fixed isNickInRoom --- src/plugins/plugin_xep_0045.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/plugin_xep_0045.py b/src/plugins/plugin_xep_0045.py index 28667261..fe662eda 100755 --- a/src/plugins/plugin_xep_0045.py +++ b/src/plugins/plugin_xep_0045.py @@ -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"""