Skip to content

Commit 01f3571

Browse files
Eli BEli B
authored andcommitted
fix never detecting no password prompt
1 parent cf679b5 commit 01f3571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/fucking_coffee.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static void main(String[] args)throws Exception{
2020
PrintWriter out = new PrintWriter(telnet.getOutputStream(), true);
2121
BufferedReader in = new BufferedReader(new InputStreamReader(telnet.getInputStream()));
2222
Thread.sleep(DELAY_BEFORE_BREW*1000);
23-
if(in.readLine() != PASSWORD_PROMPT){
23+
if(!in.readLine().equals(PASSWORD_PROMPT)){
2424
return ;
2525
}
2626
out.println(PASSWORD);

0 commit comments

Comments
 (0)