mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Fix some inappropriate uses of ConvToNum.
This commit is contained in:
parent
70716c5c0d
commit
f3aa73d5e1
@ -72,7 +72,7 @@ public:
|
|||||||
|
|
||||||
bool getBool(const std::string& key, bool def = false) const
|
bool getBool(const std::string& key, bool def = false) const
|
||||||
{
|
{
|
||||||
return getNum<bool>(key, def);
|
return !!getNum<uint8_t>(key, def);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ void CommandServer::HandleExtra(TreeServer* newserver, Params& params)
|
|||||||
if (irc::equals(key, "burst"))
|
if (irc::equals(key, "burst"))
|
||||||
newserver->BeginBurst(ConvToNum<uint64_t>(val));
|
newserver->BeginBurst(ConvToNum<uint64_t>(val));
|
||||||
else if (irc::equals(key, "hidden"))
|
else if (irc::equals(key, "hidden"))
|
||||||
newserver->Hidden = ConvToNum<bool>(val);
|
newserver->Hidden = !!ConvToNum<uint8_t>(val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user