comparison frontends/src/quick_frontend/quick_app.py @ 685:0b9bd47dffcd

primitivus, wix: auto-display MUC dialog after it has been joined: - a patch will follow to add a parameter for the user to choose between "always open", "never open" and "ask each time".
author souliane <souliane@mailoo.org>
date Mon, 28 Oct 2013 18:29:34 +0100
parents 262d9d9ad27a
children f7878ad3c846
comparison
equal deleted inserted replaced
684:969562c4761b 685:0b9bd47dffcd
334 debug (_("Room [%(room_jid)s] joined by %(profile)s, users presents:%(users)s") % {'room_jid':room_jid, 'profile': profile, 'users':room_nicks}) 334 debug (_("Room [%(room_jid)s] joined by %(profile)s, users presents:%(users)s") % {'room_jid':room_jid, 'profile': profile, 'users':room_nicks})
335 self.chat_wins[room_jid].setUserNick(user_nick) 335 self.chat_wins[room_jid].setUserNick(user_nick)
336 self.chat_wins[room_jid].setType("group") 336 self.chat_wins[room_jid].setType("group")
337 self.chat_wins[room_jid].id = room_jid 337 self.chat_wins[room_jid].id = room_jid
338 self.chat_wins[room_jid].setPresents(list(set([user_nick]+room_nicks))) 338 self.chat_wins[room_jid].setPresents(list(set([user_nick]+room_nicks)))
339 self.contact_list.setSpecial(JID(room_jid), "MUC") 339 self.contact_list.setSpecial(JID(room_jid), "MUC", show=True)
340 340
341 def roomLeft(self, room_jid_s, profile): 341 def roomLeft(self, room_jid_s, profile):
342 """Called when a MUC room is left""" 342 """Called when a MUC room is left"""
343 if not self.check_profile(profile): 343 if not self.check_profile(profile):
344 return 344 return
571 if self.bridge.getParamA("autodisconnect","Connection", profile_key=self.profile) == "true": 571 if self.bridge.getParamA("autodisconnect","Connection", profile_key=self.profile) == "true":
572 #The user wants autodisconnection 572 #The user wants autodisconnection
573 self.bridge.disconnect(self.profile) 573 self.bridge.disconnect(self.profile)
574 except: 574 except:
575 pass 575 pass
576