Rename FromNowOneAllowType to FromNowOnAllowType.

This misspelling is confusing (is it allow one more rule, or all of
them?) and since v3 isn't released yet, use the major version bump
opportunity to rectify it.
This commit is contained in:
Lasse Karstensen
2017-07-13 12:11:12 +02:00
committed by Felipe Zimmerle
parent bce5ef7704
commit 515e073503
3 changed files with 5 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ bool Allow::init(std::string *error) {
} else if (a == "request") {
m_allowType = RequestAllowType;
} else if (a == "") {
m_allowType = FromNowOneAllowType;
m_allowType = FromNowOnAllowType;
} else {
error->assign("Allow: if specified, the parameter " \
"most be: phase, request");

View File

@@ -47,7 +47,7 @@ enum AllowType : int {
/**
*
*/
FromNowOneAllowType,
FromNowOnAllowType,
};
@@ -71,8 +71,8 @@ class Allow : public Action {
return "Request";
} else if (a == PhaseAllowType) {
return "Phase";
} else if (a == FromNowOneAllowType) {
return "FromNowOne";
} else if (a == FromNowOnAllowType) {
return "FromNowOn";
} else {
return "Unknown";
}