Merge pull request #39 from vitalyster/master

AdHocCommand: fix empty response when user is not registered or storage ...
This commit is contained in:
vitalyster 2013-07-29 09:42:06 -07:00
commit ad7e5ebbbe

View file

@ -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;
}