Browse Source

place affichages en debug sur comportements

Martin Passard 7 years ago
parent
commit
510238711e
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/main/Bot.java

+ 4 - 2
src/main/Bot.java

@@ -109,9 +109,11 @@ public class Bot extends PircBot {
 			System.out.println("Comportements");
 			System.out.println("Comportements");
 			if(c.hastoreact(message)) {
 			if(c.hastoreact(message)) {
 				c.react(channel, sender, login, hostname, message);
 				c.react(channel, sender, login, hostname, message);
-				System.out.println("a reagi");
+				if(Main.isDebug()) System.out.println("a reagi");
+				
 			}else {
 			}else {
-				System.out.println("ne reagit pas");
+				
+				if(Main.isDebug())System.out.println("ne reagit pas");
 			}
 			}
 		}
 		}