Skip to content
Snippets Groups Projects
Commit f0214b0a authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

little bugfix if config file is not correct

parent a7e8fb38
No related branches found
No related tags found
No related merge requests found
......@@ -332,7 +332,9 @@ class GajimCore:
type = 'available'
if ev[2][0] == '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])
self.hub.sendPlugin('STATUS', ev[1], ev[2][0])
#('MSG', account, (jid, msg))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment