Skip to content

Commit

Permalink
Merge pull request NARKOZ#110 from DonkeyCore/patch-1
Browse files Browse the repository at this point in the history
fix never detecting no password prompt
  • Loading branch information
NARKOZ committed Dec 9, 2015
2 parents cf679b5 + 01f3571 commit 546df67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/fucking_coffee.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static void main(String[] args)throws Exception{
PrintWriter out = new PrintWriter(telnet.getOutputStream(), true);
BufferedReader in = new BufferedReader(new InputStreamReader(telnet.getInputStream()));
Thread.sleep(DELAY_BEFORE_BREW*1000);
if(in.readLine() != PASSWORD_PROMPT){
if(!in.readLine().equals(PASSWORD_PROMPT)){
return ;
}
out.println(PASSWORD);
Expand Down

0 comments on commit 546df67

Please sign in to comment.