Added recap empty response.

This commit is contained in:
Erik C. Thauvin 2017-04-03 09:55:04 -07:00
parent 57a71a8ea5
commit 4de4d00141
3 changed files with 10 additions and 6 deletions

View file

@ -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;

View file

@ -1435,8 +1435,12 @@ 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) {
for (final String recap : this.recap) { if (this.recap.size() > 0) {
send(sender, recap, isPrivate); for (final String recap : this.recap) {
send(sender, recap, isPrivate);
}
} else {
send(sender, "Sorry, nothing to recap.", true);
} }
} }
@ -1684,4 +1688,4 @@ public class Mobibot extends PircBot {
send(sender, "There is currently nothing to view. Why don't you post something?", isPrivate); send(sender, "There is currently nothing to view. Why don't you post something?", isPrivate);
} }
} }
} }

View file

@ -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