Skip to content

Commit cb66ff3

Browse files
committed
Really fix DiceServData::HasExtended(), earlier fix wasn't working.
(Also replacing v3.0.3 tag to here.)
1 parent 1331dd6 commit cb66ff3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

diceserv.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2520,10 +2520,14 @@ void DiceServData::SendReply(CommandSource &source, const Anope::string &output)
25202520

25212521
bool DiceServData::HasExtended() const
25222522
{
2523+
bool opResultsHasExtended = false;
25232524
for (int i = 0, len = this->opResults.size(); i < len; ++i)
2524-
if (this->opResults[i].empty())
2525-
return false;
2526-
return !this->timesPart.empty() && !this->timesResults.empty();
2525+
if (!this->opResults[i].empty())
2526+
{
2527+
opResultsHasExtended = true;
2528+
break;
2529+
}
2530+
return (!this->timesPart.empty() && !this->timesResults.empty()) || opResultsHasExtended;
25272531
}
25282532

25292533
/** A middleman service to prevent the need for most of DiceServData's code being in the header (and thus only defined once here in the core).

0 commit comments

Comments
 (0)