Merge pull request #621 from diamante0018/main
maint(auth): only write keys if there is anything to write
This commit is contained in:
commit
344128770b
@ -357,10 +357,16 @@ namespace auth
|
|||||||
{
|
{
|
||||||
game::Info_SetValueForKey(s, key, value);
|
game::Info_SetValueForKey(s, key, value);
|
||||||
|
|
||||||
const auto password_text = (password && password->current.value.string) ? password->current.value.string : "";
|
if (password && *password->current.value.string)
|
||||||
game::Info_SetValueForKey(s, "password", password_text);
|
{
|
||||||
|
game::Info_SetValueForKey(s, "password", password->current.value.string);
|
||||||
|
}
|
||||||
|
|
||||||
game::Info_SetValueForKey(s, "clanAbbrev", game::LiveStats_GetClanTagText(0));
|
const auto* clan_abbrev = game::LiveStats_GetClanTagText(0);
|
||||||
|
if (*clan_abbrev)
|
||||||
|
{
|
||||||
|
game::Info_SetValueForKey(s, "clanAbbrev", clan_abbrev);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct component final : generic_component
|
struct component final : generic_component
|
||||||
|
Loading…
Reference in New Issue
Block a user