示例#1
0
文件: Arisu.java 项目: Carlgo11/Arisu
  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;
    }
  }
示例#2
0
文件: Arisu.java 项目: Carlgo11/Arisu
 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;
   }
 }