- seconds = conf->ReadInteger("connflood", "seconds", 0, true);
- maxconns = conf->ReadInteger("connflood", "maxconns", 0, true);
- timeout = conf->ReadInteger("connflood", "timeout", 0, true);
- quitmsg = conf->ReadValue("connflood", "quitmsg", 0);
+ seconds = tag->getDuration("period", tag->getInt("seconds"));
+ maxconns = tag->getInt("maxconns");
+ timeout = tag->getDuration("timeout");
+ quitmsg = tag->getString("quitmsg");