Commit 7ae8d7df authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Transform list of admins to lowercase.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3250 b35dd754-fafc-0310-a699-88a17e54d16e
parent bbf84425
......@@ -223,7 +223,7 @@ public class XMPPServer {
while (tokenizer.hasMoreTokens()) {
String username = tokenizer.nextToken();
try {
admins.add(createJID(username, null));
admins.add(createJID(username.toLowerCase().trim(), null));
}
catch (IllegalArgumentException e) {
// Ignore usernames that when appended @server.com result in an invalid JID
......@@ -237,7 +237,7 @@ public class XMPPServer {
jids = (jids == null || jids.trim().length() == 0) ? "" : jids;
tokenizer = new StringTokenizer(jids, ",");
while (tokenizer.hasMoreTokens()) {
String jid = tokenizer.nextToken();
String jid = tokenizer.nextToken().toLowerCase().trim();
try {
admins.add(new JID(jid));
}
......
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