fix setting free for chat status through adhoc commands. fixes #1910

This commit is contained in:
Yann Leboulanger 2008-10-23 16:52:29 +00:00
parent 1a8b77f1cc
commit ccc0cfd708
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class ChangeStatusCommand(AdHocCommand):
var = 'presence-type',
label = 'Type of presence:',
options = [
(u'free-for-chat', _('Free for chat')),
(u'chat', _('Free for chat')),
(u'online', _('Online')),
(u'away', _('Away')),
(u'xa', _('Extended away')),
@ -128,7 +128,7 @@ class ChangeStatusCommand(AdHocCommand):
try:
presencetype = form['presence-type'].value
if not presencetype in \
('free-for-chat', 'online', 'away', 'xa', 'dnd', 'offline'):
('chat', 'online', 'away', 'xa', 'dnd', 'offline'):
self.badRequest(request)
return False
except Exception: # KeyError if there's no presence-type field in form or