Buggy code:
} x ++ ; } } } Pattern goodN = Pattern . compile ( "^Goodnight" ) ; Matcher goodM = goodN . matcher ( message ) ; if ( goodM . find ( ) ) { String chanl = "" ; if ( ( message . length ( ) ) > 6 ) { chanl = "" ; } if ( sender . equalsIgnoreCase ( ZatchBot . Master ) ) { sendMessage ( channel , "Goodnight<seq2seq4repair_space>Father<seq2seq4repair_space>" ) ; } else { sendMessage ( channel , ( ( "Goodnight<seq2seq4repair_space>" + sender ) + chanl ) ) ; } } if ( message . equals ( "Hello<seq2seq4repair_space>Zatch" ) ) { sendMessage ( channel , ( "Hello,<seq2seq4repair_space>" + sender ) ) ; } Pattern byeC = Pattern . compile ( "^Goodbye" ) ; Matcher byeM = byeC . matcher ( message ) ; if ( byeM . find ( ) ) { if ( sender . equalsIgnoreCase ( ZatchBot . Master ) ) { sendMessage ( channel , "Goodbye<seq2seq4repair_space>Father," ) ; } else { sendMessage ( channel , ( "Goodbye<seq2seq4repair_space>" + sender ) ) ; } } Pattern hateY = Pattern . compile ( "^I<seq2seq4repair_space>hate<seq2seq4repair_space>you<seq2seq4repair_space>Zatch" ) ; Matcher hateM = hateY . matcher ( message ) ; if ( hateM . find ( ) ) { String chanl = "" ; if ( ( message . length ( ) ) > 6 ) { chanl = "" ; } sendMessage ( channel , ( "I<seq2seq4repair_space>hate<seq2seq4repair_space>you<seq2seq4repair_space>too,<seq2seq4repair_space>bitch." + chanl ) ) ; } if ( message . equals ( "&code" ) ) { sendMessage ( channel , "https:////github.com//Sapein//ZatchBot" ) ; } if ( message . equalsIgnoreCase ( "&version" ) ) { sendMessage ( channel , ( "PIRCBOT:<seq2seq4repair_space>" + ( VERSION ) ) ) ; sendMessage ( channel , ( "Zatch:<seq2seq4repair_space>" + ( ZatchBot . version ) ) ) ; } if ( message . equalsIgnoreCase ( "&pie" ) ) { sendAction ( channel , ( ( ( "Throws<seq2seq4repair_space>pie<seq2seq4repair_space>in<seq2seq4repair_space>" + sender ) + "'s<seq2seq4repair_space>" ) + "face." ) ) ; } Pattern fishP = Pattern . compile ( "^\\&fishslap" ) ; Matcher fishM = fishP . matcher ( message ) ; if ( fishM . find ( ) ) { String fslap = new String ( "" ) ; if ( ( message . length ( ) ) > 10 ) { fslap = message . substring ( 10 ) ; } sendAction ( channel , ( ( ( ( "must<seq2seq4repair_space>slap<seq2seq4repair_space>" + fslap ) + "<seq2seq4repair_space>with<seq2seq4repair_space>a<seq2seq4repair_space>trout,<seq2seq4repair_space>because<seq2seq4repair_space>" ) + sender ) + "<seq2seq4repair_space>wills<seq2seq4repair_space>it." ) ) ; sendAction ( channel , ( ( "slaps<seq2seq4repair_space>" + fslap ) + "<seq2seq4repair_space>with<seq2seq4repair_space>a<seq2seq4repair_space>trout." ) ) ; sendAction ( channel , "laughs<seq2seq4repair_space>evily" ) ; } if ( message . equalsIgnoreCase ( "&fish" ) ) { sendMessage ( channel , "FISH" ) ; } if ( message . equalsIgnoreCase ( "&time" ) ) { sendMessage ( channel , ( ( "It<seq2seq4repair_space>is<seq2seq4repair_space>" + yourTime ) + "<seq2seq4repair_space>CST" ) ) ; } if ( message . equalsIgnoreCase ( "&date" ) ) { sendMessage ( channel , ( ( "It<seq2seq4repair_space>is<seq2seq4repair_space>" + yourDate ) + "<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>CST<seq2seq4repair_space>Timezone" ) ) ; } if ( ( toggleLogs ) == true ) { Pattern change2 = Pattern . compile ( "^" ) ; Matcher change1 = change2 . matcher ( message ) ; if ( change1 . find ( ) ) { String chanl1 = new String ( "" ) ; if ( ( message . length ( ) ) > 0 ) { chanl1 = message . substring ( 0 ) ; } try { File file = new File ( ( ( ( ( ( ( ZatchBot . LogsLocation ) + channel ) + "<seq2seq4repair_space>" ) + yourDate ) + "<seq2seq4repair_space>" ) + "log.txt" ) ) ; if ( ! ( file . exists ( ) ) ) { file . createNewFile ( ) ; } FileWriter fw = new FileWriter ( file . getAbsoluteFile ( ) , true ) ; BufferedWriter bw = new BufferedWriter ( fw ) ; bw . write ( ( ( ( ( ( ( ( ( channel + "<seq2seq4repair_space>" ) + "<seq2seq4repair_space>" ) + yourTime ) + "<seq2seq4repair_space>" ) + sender ) + ":" ) + chanl1 ) + "\r\n" ) ) ; bw . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } } for ( int OpNumber = 0 ; OpNumber < ( OpNicks . length ) ; ++ OpNumber ) { if ( ( ( OpHostnameUsed ) == false ) && ( ( sender . equalsIgnoreCase ( ZatchBot . Master ) ) || ( sender . equalsIgnoreCase ( OpNicks [ OpNumber ] ) ) ) ) { op ( channel , sender ) ; } if ( ( ( OpHostnameUsed ) == true ) && ( ( ( sender . equalsIgnoreCase ( ZatchBot . Master ) ) || ( ( ( OpNickUsed ) == true ) && ( sender . equalsIgnoreCase ( OpNicks [ OpNumber ] ) ) ) ) || ( ( OpNickUsed ) == false ) ) ) { for ( int opHostnameNumber = 0 ; opHostnameNumber < ( OpHostnames . length ) ; ++ opHostnameNumber ) { if ( hostname . equals ( OpHostnames [ opHostnameNumber ] ) ) { op ( channel , sender ) ; } } } } <START_BUG> if ( sender . equalsIgnoreCase ( "Chanku" ) ) { <END_BUG> if ( message . equalsIgnoreCase ( "&reloadConfigs" ) ) { try { loadConfig ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } } } protected void onKick ( String channel , String kickerNick , String kickerLogin , String kickerHostname , String recipientNick , String reason ) { } protected void onDisconnect ( ) { } protected void loadConfig ( ) throws Exception { } }

Fix:
if ( sender . equalsIgnoreCase ( ZatchBot . Master ) ) {