Commit 1165ee34 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed error creating new rooms.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@129 b35dd754-fafc-0310-a699-88a17e54d16e
parent fe23a870
......@@ -445,15 +445,20 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha
historyStrategy.setContext("xmpp.muc.history");
// Load the list of JIDs that are sysadmins of the MUC service
String property = JiveGlobals.getProperty("xmpp.muc.sysadmin.jid");
String[] jids = (property != null ? property.split(",") : new String[]{""});
for (int i = 0; i < jids.length; i++) {
sysadmins.add(jids[i].trim().toLowerCase());
String[] jids;
if (property != null) {
jids = property.split(",");
for (int i = 0; i < jids.length; i++) {
sysadmins.add(jids[i].trim().toLowerCase());
}
}
// Load the list of JIDs that are allowed to create a MUC room
property = JiveGlobals.getProperty("xmpp.muc.create.jid");
jids = (property != null ? property.split(",") : new String[]{""});
for (int i = 0; i < jids.length; i++) {
allowedToCreate.add(jids[i].trim().toLowerCase());
if (property != null) {
jids = property.split(",");
for (int i = 0; i < jids.length; i++) {
allowedToCreate.add(jids[i].trim().toLowerCase());
}
}
String value = JiveGlobals.getProperty("xmpp.muc.tasks.user.timeout");
if (value != null) {
......
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