Commit 61cd75b3 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added xmpp.muc.unload.empty_days system property so admins can configure the...

Added xmpp.muc.unload.empty_days system property so admins can configure the number of empty days before unloading the room. JM-235

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3433 b35dd754-fafc-0310-a699-88a17e54d16e
parent dcf1c12b
......@@ -730,6 +730,15 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha
Log.error("Wrong number format of property xmpp.muc.tasks.log.batchsize", e);
}
}
value = JiveGlobals.getProperty("xmpp.muc.unload.empty_days");
if (value != null) {
try {
emptyLimit = Integer.parseInt(value) * 24;
}
catch (NumberFormatException e) {
Log.error("Wrong number format of property xmpp.muc.unload.empty_days", e);
}
}
if (chatServiceName == null) {
chatServiceName = "conference";
}
......
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