Added recap empty response.
This commit is contained in:
parent
57a71a8ea5
commit
4de4d00141
3 changed files with 10 additions and 6 deletions
|
@ -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.
|
||||
*/
|
||||
private void recapResponse(final String sender, final boolean isPrivate) {
|
||||
for (final String recap : this.recap) {
|
||||
send(sender, recap, isPrivate);
|
||||
if (this.recap.size() > 0) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue