Fixed private messages feature.

This commit is contained in:
Christian P. MOMON 2021-04-19 04:32:47 +02:00
parent d00ba4c40a
commit ef22bbc593

View File

@ -415,36 +415,12 @@ public class Hebdobot extends PircBot
String text = message.trim();
if (StringUtils.equalsIgnoreCase(text, "!vaten"))
{
logger.info("!die caught.");
// Die.
if (this.review == null)
{
try
{
sendMessage(sender + ", ok bye.");
sendMessage(sender, "ok bye.");
Thread.sleep(1000);
System.exit(0);
}
catch (InterruptedException exception)
{
logger.warn("Pause abort: " + exception.getMessage());
}
}
else
{
sendMessage("% Une revue est en cours, abandon impossible.");
}
}
else if (text.startsWith("!"))
if (text.startsWith("!"))
{
logger.info("!??? caught.");
// Command unknown.
sendMessage(sender + ", command unknown: " + text);
sendMessage(sender, "vos commandes dans le salon public");
}
else
{