public boolean isOp(String sender, String channel) { User users[] = getUsers(channel); User u = null; for (User user : users) { String us = user.getNick().replace("~", ""); System.out.println("user: "******"~")) { return true; } else { return false; } }
public boolean isVoice(String sender, String channel) { User users[] = getUsers(channel); User u = null; for (User usa : users) { if (sender.equals(usa.getNick())) { u = usa; break; } } if (u.hasVoice()) { return true; } else { return false; } }