SàT multi-profile: connection using profiles
- /!\ plugins are temporarly deactivated
This commit is contained in:
parent
d6b6f77bec
commit
714cf1ed2f
1 changed files with 76 additions and 63 deletions
|
|
@ -364,8 +364,6 @@ class Memory:
|
|||
self.params=Param(host)
|
||||
self.history={} #used to store chat history (key: short jid)
|
||||
self.private={} #used to store private value
|
||||
self.disco={} #XXX: maybe best in a separate class
|
||||
self.features={}
|
||||
host.set_const('savefile_history', SAVEFILE_HISTORY)
|
||||
host.set_const('savefile_private', SAVEFILE_PRIVATE)
|
||||
self.load()
|
||||
|
|
@ -442,6 +440,13 @@ class Memory:
|
|||
def getProfilesList(self):
|
||||
return self.params.getProfilesList()
|
||||
|
||||
|
||||
def getProfileName(self, profile_key):
|
||||
"""Return name of profile from keyword
|
||||
@param profile_key: can be the profile name or a keywork (like @DEFAULT@)
|
||||
@return: profile name or None if it doesn't exist"""
|
||||
return self.params.getProfileName(profile_key)
|
||||
|
||||
def createProfile(self, name, default=False):
|
||||
"""Create a new profile
|
||||
@param name: Profile name
|
||||
|
|
|
|||
Loading…
Reference in a new issue