changeset 198:3d7a06fe3997

plugin XEP-0045: fixed receivedSubject
author Goffi <goffi@goffi.org>
date Fri, 20 Aug 2010 01:11:51 +0800
parents ca1010f47002
children 58f96e66ec17
files plugins/plugin_xep_0045.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/plugin_xep_0045.py	Fri Aug 20 01:11:09 2010 +0800
+++ b/plugins/plugin_xep_0045.py	Fri Aug 20 01:11:51 2010 +0800
@@ -174,7 +174,8 @@
         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)