Beispiel #1
0
 public boolean isAdmin(String sender) {
   if (admins.contains(sender)) {
     return true;
   } else {
     return false;
   }
 }
Beispiel #2
0
 public boolean isMod(String sender) {
   if (mods.contains(sender)) {
     return true;
   } else {
     return false;
   }
 }
Beispiel #3
0
 public void onInvite(
     String targetNick, String sender, String sourceLogin, String sourceHostname, String channel) {
   if (!ignored.contains(channel)) {
     try {
       this.appendChannel(channel, sender);
     } catch (IOException ex) {
       this.sendError(sender, ex.toString());
     }
   } else {
     ignoredChannel(sender, channel);
   }
 }