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

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

parent 1a8b77f1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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