Author: asterix
Date: 2008-10-23 18:52:29 +0200 (Thu, 23 Oct 2008)
New Revision: 10565
Modified:
trunk/src/common/commands.py
Log:
fix setting free for chat status through adhoc commands. fixes #1910
Modified: trunk/src/common/commands.py
===================================================================
--- trunk/src/common/commands.py 2008-10-23 16:17:03 UTC (rev 10564)
+++ trunk/src/common/commands.py 2008-10-23 16:52:29 UTC (rev 10565)
@@ -97,7 +97,7 @@
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 @@
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