Added recap empty response.
This commit is contained in:
parent
57a71a8ea5
commit
4de4d00141
3 changed files with 10 additions and 6 deletions
|
@ -13,9 +13,9 @@ import java.time.*;
|
||||||
* Annotation Processor</a>
|
* Annotation Processor</a>
|
||||||
*/
|
*/
|
||||||
public final class ReleaseInfo {
|
public final class ReleaseInfo {
|
||||||
private final static String buildmeta = "017";
|
private final static String buildmeta = "018";
|
||||||
private final static LocalDateTime date =
|
private final static LocalDateTime date =
|
||||||
LocalDateTime.ofInstant(Instant.ofEpochMilli(1491237382787L), ZoneId.systemDefault());
|
LocalDateTime.ofInstant(Instant.ofEpochMilli(1491238266337L), ZoneId.systemDefault());
|
||||||
private final static int major = 0;
|
private final static int major = 0;
|
||||||
private final static int minor = 7;
|
private final static int minor = 7;
|
||||||
private final static int patch = 0;
|
private final static int patch = 0;
|
||||||
|
|
|
@ -1435,9 +1435,13 @@ public class Mobibot extends PircBot {
|
||||||
* @param isPrivate Set to <code>true</code> if the response should be sent as a private message.
|
* @param isPrivate Set to <code>true</code> if the response should be sent as a private message.
|
||||||
*/
|
*/
|
||||||
private void recapResponse(final String sender, final boolean isPrivate) {
|
private void recapResponse(final String sender, final boolean isPrivate) {
|
||||||
|
if (this.recap.size() > 0) {
|
||||||
for (final String recap : this.recap) {
|
for (final String recap : this.recap) {
|
||||||
send(sender, recap, isPrivate);
|
send(sender, recap, isPrivate);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
send(sender, "Sorry, nothing to recap.", true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -5,4 +5,4 @@ version.major=0
|
||||||
version.minor=7
|
version.minor=7
|
||||||
version.patch=0
|
version.patch=0
|
||||||
version.prerelease=beta
|
version.prerelease=beta
|
||||||
version.buildmeta=017
|
version.buildmeta=018
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue