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
1 changed files with 11 additions and 15 deletions

View File

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