Fixed private messages feature.
This commit is contained in:
parent
d00ba4c40a
commit
ef22bbc593
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user