Commit f254b34e authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Removed possibility to edit MUC service name.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@184 b35dd754-fafc-0310-a699-88a17e54d16e
parent 2704be23
......@@ -38,7 +38,6 @@
boolean save = ParamUtils.getBooleanParameter(request,"save");
boolean success = false;
String name = ParamUtils.getParameter(request,"servername");
String muc = ParamUtils.getParameter(request,"mucname");
......@@ -49,11 +48,7 @@
if (name == null) {
errors.put("servername","servername");
}
if (muc == null || muc.indexOf('.') >= 0) {
errors.put("mucname","mucname");
}
if (errors.size() == 0) {
admin.getMultiUserChatServer().setServiceName(muc);
admin.getXMPPServer().getServerInfo().setName(name);
success = true;
}
......@@ -61,8 +56,6 @@
else {
name = admin.getServerInfo().getName() == null
? "" : admin.getServerInfo().getName();
muc = admin.getMultiUserChatServer().getServiceName() == null
? "" : admin.getMultiUserChatServer().getServiceName();
}
%>
......@@ -104,23 +97,6 @@ Use the form below to edit server properties.
<% } %>
</td>
</tr>
<tr>
<td class="jive-label">
Multi User Chat server name:
</td>
<td>
<input type="text" size="30" maxlength="150" name="mucname"
value="<%= muc %>">
<% if (errors.get("mucname") != null) { %>
<span class="jive-error-text">
Please enter a valid name.
</span>
<% } %>
</td>
</tr>
</table>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment