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 @@ ...@@ -38,7 +38,6 @@
boolean save = ParamUtils.getBooleanParameter(request,"save"); boolean save = ParamUtils.getBooleanParameter(request,"save");
boolean success = false; boolean success = false;
String name = ParamUtils.getParameter(request,"servername"); String name = ParamUtils.getParameter(request,"servername");
String muc = ParamUtils.getParameter(request,"mucname");
...@@ -49,11 +48,7 @@ ...@@ -49,11 +48,7 @@
if (name == null) { if (name == null) {
errors.put("servername","servername"); errors.put("servername","servername");
} }
if (muc == null || muc.indexOf('.') >= 0) {
errors.put("mucname","mucname");
}
if (errors.size() == 0) { if (errors.size() == 0) {
admin.getMultiUserChatServer().setServiceName(muc);
admin.getXMPPServer().getServerInfo().setName(name); admin.getXMPPServer().getServerInfo().setName(name);
success = true; success = true;
} }
...@@ -61,8 +56,6 @@ ...@@ -61,8 +56,6 @@
else { else {
name = admin.getServerInfo().getName() == null name = admin.getServerInfo().getName() == null
? "" : admin.getServerInfo().getName(); ? "" : admin.getServerInfo().getName();
muc = admin.getMultiUserChatServer().getServiceName() == null
? "" : admin.getMultiUserChatServer().getServiceName();
} }
%> %>
...@@ -104,23 +97,6 @@ Use the form below to edit server properties. ...@@ -104,23 +97,6 @@ Use the form below to edit server properties.
<% } %> <% } %>
</td> </td>
</tr> </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> </table>
</div> </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