Esempio n. 1
0
 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;
   }
 }
Esempio n. 2
0
  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;
    }
  }