Compare commits

...

3 Commits

Author SHA1 Message Date
Christian P. MOMON 03103efa35 Build 2.11.3 2021-04-19 04:56:08 +02:00
Christian P. MOMON ef22bbc593 Fixed private messages feature. 2021-04-19 04:32:47 +02:00
Christian P. MOMON d00ba4c40a Made Javadoc review. 2021-04-18 03:17:44 +02:00
4 changed files with 8 additions and 36 deletions

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Sun Apr 18 03:16:03 CEST 2021
build.number=3
#Mon Apr 19 04:55:56 CEST 2021
build.number=4

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
{

View File

@ -31,11 +31,9 @@ public abstract class Hook
/**
* Attempt help.
*
* @param bot
* the bot
* @param message
* the message
* @return true, if successful
* @param string
* the string
* @return the string list
* @throws HebdobotException
* the hebdobot exception
*/

View File

@ -62,11 +62,9 @@ public class Hooker
/**
* Attempt help.
*
* @param bot
* the bot
* @param message
* the message
* @return true, if successful
* @return the string list
* @throws HebdobotException
* the hebdobot exception
*/