Changeset - 3ba2aa3d34f3
[Not reviewed]
0 1 0
Vitaly Takmazov - 12 years ago 2013-07-29 18:39:51
vitalyster@gmail.com
AdHocCommand: fix empty response when user is not registered or storage not configured
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/settingsadhoccommand.cpp
Show inline comments
 
@@ -60,6 +60,7 @@ boost::shared_ptr<Swift::Command> SettingsAdHocCommand::getForm() {
 
		boost::shared_ptr<Swift::Command> response(new Swift::Command("settings", m_id, Swift::Command::Completed));
 
		boost::shared_ptr<Swift::Form> form(new Swift::Form());
 
		form->addField(Swift::FixedFormField::create("This server does not support transport settings. There is no storage backend configured"));
 
		response->setForm(form);
 
		return response;
 
	}
 

	
 
@@ -68,6 +69,7 @@ boost::shared_ptr<Swift::Command> SettingsAdHocCommand::getForm() {
 
		boost::shared_ptr<Swift::Command> response(new Swift::Command("settings", m_id, Swift::Command::Completed));
 
		boost::shared_ptr<Swift::Form> form(new Swift::Form());
 
		form->addField(Swift::FixedFormField::create("You are not registered."));
 
		response->setForm(form);
 
		return response;
 
	}
 

	
0 comments (0 inline, 0 general)