bridge: core & frontend sides of bridge are now generated
This commit is contained in:
parent
69c0c458f0
commit
adc4ad3321
1 changed files with 181 additions and 29 deletions
|
|
@ -119,9 +119,9 @@ class QuickApp():
|
|||
self.profile = profile
|
||||
|
||||
###now we get the essential params###
|
||||
self.profiles[profile]['whoami']=JID(self.bridge.getParamA("JabberID","Connection", profile))
|
||||
autoconnect = self.bridge.getParamA("autoconnect","Connection", profile) == "true"
|
||||
self.profiles[profile]['watched']=self.bridge.getParamA("Watched", "Misc", profile).split() #TODO: put this in a plugin
|
||||
self.profiles[profile]['whoami']=JID(self.bridge.getParamA("JabberID","Connection", profile_key=profile))
|
||||
autoconnect = self.bridge.getParamA("autoconnect","Connection", profile_key=profile) == "true"
|
||||
self.profiles[profile]['watched']=self.bridge.getParamA("Watched", "Misc", profile_key=profile).split() #TODO: put this in a plugin
|
||||
|
||||
## misc ##
|
||||
self.profiles[profile]['onlineContact'] = set() #FIXME: temporary
|
||||
|
|
@ -440,7 +440,7 @@ class QuickApp():
|
|||
"""Must be called when the frontend is terminating"""
|
||||
#TODO: mange multi-profile here
|
||||
try:
|
||||
autodisconnect = self.bridge.getParamA("autodisconnect","Connection", self.profile) == "true"
|
||||
autodisconnect = self.bridge.getParamA("autodisconnect","Connection", profile_key=self.profile) == "true"
|
||||
if autodisconnect and self.bridge.isConnected(self.profile):
|
||||
#Does the user want autodisconnection ?
|
||||
self.bridge.disconnect(self.profile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue