From ccc0cfd7085da6c4f1350839f39df99489eec6be Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Thu, 23 Oct 2008 16:52:29 +0000
Subject: [PATCH] fix setting free for chat status through adhoc commands.
 fixes #1910

---
 src/common/commands.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/common/commands.py b/src/common/commands.py
index 1c012290dd..bbe5385f92 100644
--- a/src/common/commands.py
+++ b/src/common/commands.py
@@ -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
-- 
GitLab