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