quick_app: self.occupants for group chat are now managed by quick_chat. self.options.profile now support unicode
This commit is contained in:
parent
ded8314a26
commit
f18d8f2d7e
1 changed files with 7 additions and 5 deletions
|
|
@ -91,6 +91,8 @@ class QuickApp():
|
|||
parser.add_option("-p", "--profile", help=_("Select the profile to use"))
|
||||
|
||||
(self.options, args) = parser.parse_args()
|
||||
if self.options.profile:
|
||||
self.options.profile = self.options.profile.decode('utf-8')
|
||||
return args
|
||||
|
||||
def plug_profile(self, profile_key='@DEFAULT@'):
|
||||
|
|
@ -141,7 +143,7 @@ class QuickApp():
|
|||
for sub in waitingSub:
|
||||
self.subscribe(waitingSub[sub], sub, profile)
|
||||
|
||||
#Now we open the MUC window when we already are:
|
||||
#Now we open the MUC window where we already are:
|
||||
for room_args in self.bridge.getRoomJoined(profile):
|
||||
self.roomJoined(*room_args, profile=profile)
|
||||
|
||||
|
|
@ -164,7 +166,7 @@ class QuickApp():
|
|||
return
|
||||
debug(_("Connected"))
|
||||
self.setStatusOnline(True)
|
||||
#self.bridge.joinMUC('conference.necton2.int', 'test', self.profiles[self.profile]['whoami'].node, self.profile) #gof:
|
||||
self.bridge.joinMUC('conference.necton2.int', 'test', self.profiles[self.profile]['whoami'].node, self.profile) #gof:
|
||||
|
||||
|
||||
def disconnected(self, profile):
|
||||
|
|
|
|||
Loading…
Reference in a new issue