Fixed missing message in raw review part (agir #2876).

This commit is contained in:
Christian P. MOMON 2018-01-12 01:34:32 +01:00
parent 9d502cc73f
commit 4c0410772e

View File

@ -504,7 +504,11 @@ public class Hebdobot extends PircBot
{
logger.info("% caught.");
// Ignore.
// Store it in raw review part.
if (this.review != null)
{
this.review.addRaw(new Message(sender, text));
}
}
else if (StringsUtils.equalsAnyIgnoreCase(text, "!salut", "!bonjour", "!hello"))
{
@ -518,11 +522,15 @@ public class Hebdobot extends PircBot
logger.info("!??? caught.");
// Command unknown.
sendMessage(sender + ", command unknown: " + text);
sendMessage(sender + ", commande inconnue: " + text);
if (this.review != null)
{
this.review.addRaw(new Message(sender, text));
}
}
else
{
logger.info("Else caught.");
logger.info("All the other caught.");
// Topic message.
if (this.review == null)
@ -537,19 +545,7 @@ public class Hebdobot extends PircBot
this.review.add(new Message(sender, text));
}
}
/*
else
{
logger.info("Else caught.");
// All the other.
if (this.review != null)
{
this.review.addRaw(new Message(sender, text));
}
}*/
}
}
/* (non-Javadoc)