comparison src/plugins/plugin_misc_quiz.py @ 564:f65f5a324bd5

plugin quiz: fixed XEP-0045 call
author Goffi <goffi@goffi.org>
date Fri, 28 Dec 2012 20:05:08 +0100
parents a31abb97310d
children ca13633d3b6b
comparison
equal deleted inserted replaced
563:da6eaa2af092 564:f65f5a324bd5
247 if not muc_service: 247 if not muc_service:
248 error(_("Can't find a MUC service")) 248 error(_("Can't find a MUC service"))
249 return 249 return
250 250
251 _jid, xmlstream = self.host.getJidNStream(profile) 251 _jid, xmlstream = self.host.getJidNStream(profile)
252 d = self.host.plugins["XEP-0045"].join(muc_service.userhost(), room_name, _jid.user, profile).addCallback(quizRoomJoined) 252 d = self.host.plugins["XEP-0045"].join(jid.JID("%s@%s" % (room_name, muc_service.userhost())), _jid.user, {}, profile).addCallback(quizRoomJoined)
253 253
254 client = self.host.getClient(profile) 254 client = self.host.getClient(profile)
255 if not client: 255 if not client:
256 error(_('No client for this profile key: %s') % profile_key) 256 error(_('No client for this profile key: %s') % profile_key)
257 return 257 return