Commit 279d2544 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Refactoring work.

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@3007 b35dd754-fafc-0310-a699-88a17e54d16e
parent e520cc1c
/**
* $RCSfile$
* $RCSfile: MessageRouter.java,v $
* $Revision$
* $Date$
*
......@@ -133,13 +133,9 @@ public class MessageRouter extends BasicModule {
}
else {
// Forward the message to the users allowed to log into the admin console
jids = JiveGlobals.getXMLProperty("adminConsole.authorizedUsernames");
jids = (jids == null || jids.trim().length() == 0) ? "admin" : jids;
StringTokenizer tokenizer = new StringTokenizer(jids, ",");
while (tokenizer.hasMoreTokens()) {
String username = tokenizer.nextToken();
for (JID jid : XMPPServer.getInstance().getAdmins()) {
Message forward = packet.createCopy();
forward.setTo(username + "@" + serverName);
forward.setTo(jid);
route(forward);
}
}
......
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