plugin misc_room_game, radiocol, tarot: fixes bridge method "prepareRoom" declaration (add "async=True")
This commit is contained in:
parent
a43608b966
commit
ba2cf4d448
1 changed files with 5 additions and 5 deletions
|
|
@ -407,7 +407,7 @@ class RoomGame(object):
|
|||
profile = self.host.memory.getProfileName(profile_key)
|
||||
if not profile:
|
||||
log.error(_("Unknown profile"))
|
||||
return
|
||||
return defer.succeed(None)
|
||||
if other_players is None:
|
||||
other_players = []
|
||||
|
||||
|
|
@ -419,11 +419,11 @@ class RoomGame(object):
|
|||
if room_jid_s is not None and room_jid_s != "": # a room name has been specified
|
||||
if room_jid_s in self.host.plugins["XEP-0045"].clients[profile].joined_rooms:
|
||||
roomJoined(self.host.plugins["XEP-0045"].clients[profile].joined_rooms[room_jid_s])
|
||||
return
|
||||
return defer.succeed(None)
|
||||
else:
|
||||
room_jid_s = self.getUniqueName(profile_key=profile_key)
|
||||
if room_jid_s == "":
|
||||
return
|
||||
return defer.succeed(None)
|
||||
user_jid = self.host.getJidNStream(profile)[0]
|
||||
d = self.host.plugins["XEP-0045"].join(JID(room_jid_s), user_jid.user, {}, profile)
|
||||
return d.addCallback(roomJoined)
|
||||
|
|
|
|||
Loading…
Reference in a new issue