From ff634dad64415b182c611021f516ee11c0c9be30 Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 20 Aug 2010 01:11:51 +0800 Subject: [PATCH] plugin XEP-0045: fixed receivedSubject --- plugins/plugin_xep_0045.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/plugin_xep_0045.py b/plugins/plugin_xep_0045.py index f1bd899a..ef672590 100755 --- a/plugins/plugin_xep_0045.py +++ b/plugins/plugin_xep_0045.py @@ -174,7 +174,8 @@ class SatMUCClient (muc.MUCClient): print("FIXME: MUC status not managed yet") #FIXME: gof - def receivedSubject(self, room, subject): + def receivedSubject(self, occupantJID, subject): + room = self._getRoom(occupantJID) debug (_("New subject for room (%(room_id)s): %(subject)s") % {'room_id':room.occupantJID.userhost(),'subject':subject}) room_jid = room.roomIdentifier+'@'+room.service self.rec_subjects[room_jid] = (room.roomIdentifier, room.service, subject)