First of all thank you all for your help I really appreciate it.
Well, I am obviously using the GetUsers method from the Pircbot library:
public final User getUsers(String channel) {
channel = channel.toLowerCase();
User userArray = new User[0];
synchronized (_channels) {
Hashtable users = (Hashtable) _channels.get(channel);
if (users != null) {
userArray = new User[users.size()];
Enumeration enumeration = users.elements();
for (int i = 0; i < userArray.length; i++) {
User user = (User) enumeration.nextElement();
userArray[i] = user;
}
}
}
return userArray;
}