maint(auth): only write keys if there is anything to write
This commit is contained in:
parent
17043246ba
commit
d4a5ac1346
@ -330,10 +330,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