static void sendRawLine(PircBot bot,BufferedWriter bwriter,String line){
  if (line.length() > bot.getMaxLineLength() - 2) {
    line=line.substring(0,bot.getMaxLineLength() - 2);
  }
synchronized (bwriter) {
    try {
      bwriter.write(line + "\r\n");
      bwriter.flush();
    }
 catch (    Exception e) {
    }
  }
}

static void sendRawLine ( PircBot bot , BufferedWriter bwriter , String line ) { if ( line . length ( ) > bot . getMaxLineLength ( ) - 2 ) { line = line . substring ( 0 , bot . getMaxLineLength ( ) - 2 ) ; } synchronized ( bwriter ) { try { bwriter . write ( line + "\r\n" ) ; bwriter . flush ( ) ; } catch ( Exception e ) { } } }
a static method to write a line to a bufferedoutputstream and then pass the line to the log method of the supplied pircbot instance .
