]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/configparser.cpp
Copy the silence flags when sending update notifications.
[user/henk/code/inspircd.git] / src / configparser.cpp
index e4bf4bd7197e60c4bcc19cab514a5097644570ab..abdf6f3de07e2f0cb58c3f989e750bd6704445e6 100644 (file)
@@ -609,14 +609,14 @@ unsigned long ConfigTag::getDuration(const std::string& key, unsigned long def,
        if (!readString(key, duration))
                return def;
 
-       if (!InspIRCd::IsValidDuration(duration))
+       unsigned long ret;
+       if (!InspIRCd::Duration(duration, ret))
        {
                ServerInstance->Logs->Log("CONFIG", LOG_DEFAULT, "Value of <" + tag + ":" + key + "> at " + getTagLocation() +
                        " is not a duration; value set to " + ConvToStr(def) + ".");
                return def;
        }
 
-       unsigned long ret = InspIRCd::Duration(duration);
        CheckRange(tag, key, ret, def, min, max);
        return ret;
 }