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
|
||||
{
|
||||
@ -430,6 +433,7 @@ public class Hebdobot extends PircBot
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user