Beispiel #1
0
  public void handleNotice(IRCMsg msg) {

    if (msg.getTrailing().contains("This nickname is registered and protected.")) {
      //	outboundMsgQ.add( ircCommands.nickservIdentify() );

    } else if (msg.getTrailing().contains("Password accepted -- you are now recognized.")) {
      outboundMsgQ.add(ircCommands.joinHomeChannel());

    } else if (msg.getTrailing()
        .contains("Inviting " + botnick + " to channel " + startchan + ".")) {

      log.info("Single-vector join");
      outboundMsgQ.add(ircCommands.joinHomeChannel());

    } else if (msg.getTrailing().contains("Inviting")
        && msg.getTrailing().contains("to channel")
        && msg.getTrailing().contains(startchan)) {

      log.info("Multi-vector join");
      outboundMsgQ.add(ircCommands.joinHomeChannel());
    }
  }
Beispiel #2
0
 private void handleErrorInviteOnly(IRCMsg msg) {
   if (msg.getArgs()[1].equals(startchan)) {
     outboundMsgQ.add(ircCommands.chanservInvite());
   }
 }