little bugfix if config file is not correct

This commit is contained in:
Yann Leboulanger 2004-06-09 20:38:01 +00:00
parent a7e8fb389b
commit f0214b0ac6
1 changed files with 3 additions and 1 deletions

View File

@ -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))