Improved code.

This commit is contained in:
Christian P. MOMON 2018-01-22 08:28:39 +01:00
parent 2d2a49c64d
commit de4bd8b44d
3 changed files with 11 additions and 6 deletions

View File

@ -298,7 +298,7 @@ public class Hebdobot extends PircBot
{
logger.info("!fin caught.");
// Stop.
// End.
if (this.review == null)
{
sendMessage(sender + ", pas de revue en cours.");
@ -320,9 +320,9 @@ public class Hebdobot extends PircBot
{
PastebinClient pastebinClient = new PastebinClient(this.pastebinSettings.getApiKey());
String returnValue = pastebinClient.paste(textReview, "Revue APRIL " + date, Private.UNLISTED);
String pastebinUrl = pastebinClient.paste(textReview, "Revue APRIL " + date, Private.UNLISTED);
sendMessage("% Compte-rendu de la revue : " + returnValue);
sendMessage("% Compte-rendu de la revue : " + pastebinUrl);
}
catch (final Exception exception)
{

View File

@ -365,7 +365,12 @@ public class Review
*/
private static String chunk(final String content)
{
return chunk(content, LENGTH);
String result;
result = chunk(content, LENGTH);
//
return result;
}
/**

View File

@ -401,7 +401,7 @@ public class PastebinClient
* the privat
* @param expiration
* the expiration
* @return the string
* @return the pastebin URL
* @throws HebdobotException
* the exception
*/
@ -459,7 +459,7 @@ public class PastebinClient
* the name
* @param privat
* the privat
* @return the string
* @return the pastebin URL
* @throws HebdobotException
* the hebdobot exception
*/