From 26881e3c60f970708a07ed8c3652a9ad72401000 Mon Sep 17 00:00:00 2001 From: BrokenFire Date: Fri, 17 Feb 2017 08:17:20 +0100 Subject: [PATCH] Madame is now limited at Over18 --- src/net/borken/commandes/Over18/Madame.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/borken/commandes/Over18/Madame.java b/src/net/borken/commandes/Over18/Madame.java index cf7465f..4065222 100644 --- a/src/net/borken/commandes/Over18/Madame.java +++ b/src/net/borken/commandes/Over18/Madame.java @@ -23,7 +23,7 @@ public class Madame implements Commande{ @Override public void action(String[] args, MessageReceivedEvent event) { - if(!event.getTextChannel().getName().equals("le_cours")) { + if(event.getTextChannel().getName().equals("over18")) { Redirection redirect = new Redirection(); boolean success=false; boolean error=false; @@ -50,7 +50,7 @@ public class Madame implements Commande{ } else { - event.getTextChannel().sendMessage(event.getAuthor().getAsMention()+"\n:warning: **__Channel règlementé!__**:warning: ").queue(); + event.getTextChannel().sendMessage(event.getAuthor().getAsMention()+"\n:warning: **__Channel règlementé! Go sur over18!__**:warning: ").queue(); logger.warn("Erreur chanel."); }