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