if priority for an account is not in the config file, set it to 0
This commit is contained in:
parent
d77e5094fd
commit
d739d8b068
|
@ -308,7 +308,9 @@ class GajimCore:
|
||||||
type = 'available'
|
type = 'available'
|
||||||
if ev[2][0] == 'invisible':
|
if ev[2][0] == 'invisible':
|
||||||
type = 'invisible'
|
type = 'invisible'
|
||||||
prio = str(self.cfgParser.tab[ev[1]]['priority'])
|
prio = 0
|
||||||
|
if self.cfgParser.tab[ev[1]].has_key('priority'):
|
||||||
|
prio = str(self.cfgParser.tab[ev[1]]['priority'])
|
||||||
con.sendPresence(type, prio, ev[2][0], ev[2][1])
|
con.sendPresence(type, prio, ev[2][0], ev[2][1])
|
||||||
self.hub.sendPlugin('STATUS', ev[1], ev[2][0])
|
self.hub.sendPlugin('STATUS', ev[1], ev[2][0])
|
||||||
#ask our VCard
|
#ask our VCard
|
||||||
|
|
Loading…
Reference in New Issue