pedantic elif

This commit is contained in:
Vincent Hanquez 2004-04-10 23:15:17 +00:00
parent 557cdec3ff
commit c8f31d46c1
1 changed files with 2 additions and 2 deletions

View File

@ -2099,11 +2099,11 @@ class plugin:
#we go online #we go online
self.roster.optionmenu.set_history(0) self.roster.optionmenu.set_history(0)
self.send('STATUS', None, ('online', '')) self.send('STATUS', None, ('online', ''))
if state == common.sleepy.STATE_AWAY and self.config['autoaway']: elif state == common.sleepy.STATE_AWAY and self.config['autoaway']:
#we go away #we go away
self.roster.optionmenu.set_history(1) self.roster.optionmenu.set_history(1)
self.send('STATUS', None, ('away', 'auto away (idle)')) self.send('STATUS', None, ('away', 'auto away (idle)'))
if state == common.sleepy.STATE_XAWAY and self.config['autoxa']: elif state == common.sleepy.STATE_XAWAY and self.config['autoxa']:
#we go extanded away #we go extanded away
self.roster.optionmenu.set_history(2) self.roster.optionmenu.set_history(2)
self.send('STATUS',('xa', 'auto away (idel)')) self.send('STATUS',('xa', 'auto away (idel)'))