ressource -> resource in core.py
This commit is contained in:
parent
d2f546403b
commit
a2ca03d85f
1 changed files with 3 additions and 3 deletions
|
@ -511,7 +511,7 @@ class GajimCore:
|
||||||
hostname = self.cfgParser.tab[account]["hostname"]
|
hostname = self.cfgParser.tab[account]["hostname"]
|
||||||
name = self.cfgParser.tab[account]["name"]
|
name = self.cfgParser.tab[account]["name"]
|
||||||
password = self.passwords[account]
|
password = self.passwords[account]
|
||||||
ressource = self.cfgParser.tab[account]["ressource"]
|
resource = self.cfgParser.tab[account]["resource"]
|
||||||
|
|
||||||
#create connexion if it doesn't already existe
|
#create connexion if it doesn't already existe
|
||||||
con = None
|
con = None
|
||||||
|
@ -565,7 +565,7 @@ class GajimCore:
|
||||||
log.debug("Connected to server")
|
log.debug("Connected to server")
|
||||||
|
|
||||||
#BUG in jabberpy library : if hostname is wrong : "boucle"
|
#BUG in jabberpy library : if hostname is wrong : "boucle"
|
||||||
if con.auth(name, password, ressource):
|
if con.auth(name, password, resource):
|
||||||
self.connections[con] = account
|
self.connections[con] = account
|
||||||
con.requestRoster()
|
con.requestRoster()
|
||||||
roster = con.getRoster().getRaw()
|
roster = con.getRoster().getRaw()
|
||||||
|
@ -821,7 +821,7 @@ class GajimCore:
|
||||||
elif ev[0] == 'REG_AGENT':
|
elif ev[0] == 'REG_AGENT':
|
||||||
if con:
|
if con:
|
||||||
con.sendRegInfo(ev[2])
|
con.sendRegInfo(ev[2])
|
||||||
#('NEW_ACC', (hostname, login, password, name, ressource, prio, \
|
#('NEW_ACC', (hostname, login, password, name, resource, prio, \
|
||||||
# use_proxy, proxyhost, proxyport))
|
# use_proxy, proxyhost, proxyport))
|
||||||
elif ev[0] == 'NEW_ACC':
|
elif ev[0] == 'NEW_ACC':
|
||||||
if ev[2][6]:
|
if ev[2][6]:
|
||||||
|
|
Loading…
Add table
Reference in a new issue