Commit 460d4160 authored by Axel Brand's avatar Axel Brand Committed by daeva

Gojara

- fix online_users admin command processing if no users are present

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13699 b35dd754-fafc-0310-a699-88a17e54d16e
parent cd612961
...@@ -38,12 +38,14 @@ public class GojaraAdminProcessor extends AbstractRemoteRosterProcessor { ...@@ -38,12 +38,14 @@ public class GojaraAdminProcessor extends AbstractRemoteRosterProcessor {
} }
private void handleOnlineUsers(Message message, String subdomain) { private void handleOnlineUsers(Message message, String subdomain) {
Log.info("Found online_users command!");
if (message.getBody().equals("0"))
return;
String[] content = message.getBody().split("\\r?\\n"); String[] content = message.getBody().split("\\r?\\n");
for (String user : content) { for (String user : content) {
JID userjid = new JID(user); JID userjid = new JID(user);
transportSessionManager.connectUserTo(subdomain, userjid.getNode()); transportSessionManager.connectUserTo(subdomain, userjid.getNode());
} }
Log.info("Found online_users command!");
} }
private void handleUnregister(Message message) { private void handleUnregister(Message message) {
......
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