Improved code.
This commit is contained in:
parent
2d2a49c64d
commit
de4bd8b44d
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user