From af8effe4f0876d6fa934806745712f679bd36278 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 24 Jan 2023 23:41:50 +0000 Subject: Replace getInt/getUInt/getFloat with type safe templated functions. --- src/users.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index cf2652403..e44e2bda3 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1091,20 +1091,20 @@ void ConnectClass::Configure(const std::string& classname, const std::shared_ptr ports.insert(static_cast(port)); } - commandrate = tag->getUInt("commandrate", commandrate, 1); + commandrate = tag->getNum("commandrate", commandrate, 1); fakelag = tag->getBool("fakelag", fakelag); - hardsendqmax = tag->getUInt("hardsendq", hardsendqmax, ServerInstance->Config->Limits.MaxLine); - limit = tag->getUInt("limit", limit, 1); - maxchans = tag->getUInt("maxchans", maxchans); + hardsendqmax = tag->getNum("hardsendq", hardsendqmax, ServerInstance->Config->Limits.MaxLine); + limit = tag->getNum("limit", limit, 1); + maxchans = tag->getNum("maxchans", maxchans); maxconnwarn = tag->getBool("maxconnwarn", maxconnwarn); - maxlocal = tag->getUInt("localmax", maxlocal); - maxglobal = tag->getUInt("globalmax", maxglobal, maxlocal); - penaltythreshold = tag->getUInt("threshold", penaltythreshold, 1); + maxlocal = tag->getNum("localmax", maxlocal); + maxglobal = tag->getNum("globalmax", maxglobal, maxlocal); + penaltythreshold = tag->getNum("threshold", penaltythreshold, 1); pingtime = tag->getDuration("pingfreq", pingtime); - recvqmax = tag->getUInt("recvq", recvqmax, ServerInstance->Config->Limits.MaxLine); + recvqmax = tag->getNum("recvq", recvqmax, ServerInstance->Config->Limits.MaxLine); connection_timeout = tag->getDuration("timeout", connection_timeout); resolvehostnames = tag->getBool("resolvehostnames", resolvehostnames); - softsendqmax = tag->getUInt("softsendq", softsendqmax, ServerInstance->Config->Limits.MaxLine); + softsendqmax = tag->getNum("softsendq", softsendqmax, ServerInstance->Config->Limits.MaxLine); uniqueusername = tag->getBool("uniqueusername", uniqueusername); } -- cgit v1.3.1-10-gc9f91