Added bonjour caught. Fixed else caught.
This commit is contained in:
parent
2ca03e358d
commit
544c37e5c4
@ -195,7 +195,7 @@ public class Hebdobot extends PircBot
|
||||
}
|
||||
else
|
||||
{
|
||||
sendMessage("% Une revue est en cours, arrêt impossible.");
|
||||
sendMessage("% Une revue est en cours, abandon impossible.");
|
||||
}
|
||||
}
|
||||
else if (StringUtils.equalsIgnoreCase(text, "!stop"))
|
||||
@ -205,11 +205,11 @@ public class Hebdobot extends PircBot
|
||||
// Stop.
|
||||
if (this.review == null)
|
||||
{
|
||||
sendMessage("Aucune revue en cours, arrêt impossible.");
|
||||
sendMessage("Aucune revue en cours, abandon impossible.");
|
||||
}
|
||||
else
|
||||
{
|
||||
sendMessage("Arrêt de la revue en cours.");
|
||||
sendMessage("Abandon de la revue en cours.");
|
||||
this.review = null;
|
||||
}
|
||||
}
|
||||
@ -411,7 +411,10 @@ public class Hebdobot extends PircBot
|
||||
// Topic message.
|
||||
if (this.review == null)
|
||||
{
|
||||
sendMessage("Pas de revue en cours.");
|
||||
if ((StringUtils.containsIgnoreCase(text, "bonjour")) && (StringUtils.containsIgnoreCase(text, "hebdobot")))
|
||||
{
|
||||
sendMessage(sender + ", bonjour \\o/");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -421,15 +424,16 @@ public class Hebdobot extends PircBot
|
||||
/*
|
||||
else
|
||||
{
|
||||
logger.info("Else caught.");
|
||||
logger.info("Else caught.");
|
||||
|
||||
// All the other.
|
||||
if (this.review != null)
|
||||
{
|
||||
this.review.addRaw(new Message(sender, text));
|
||||
}
|
||||
// All the other.
|
||||
if (this.review != null)
|
||||
{
|
||||
this.review.addRaw(new Message(sender, text));
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user