nuclearsilo583 / zephyrus-store-preview-new-syntax

My rewritten zephyrus store
61 stars 40 forks source link

Fixed store chat tag bug #164

Closed azalty closed 10 months ago

azalty commented 1 year ago

Fixes #162

Currently, the plugin's chat tag is cached in a variable g_sChatPrefix. This variable gets updated when the convar linked to it is modified, but the ChangeHook event OnSettingChanged is not called if it is the same as the default value.

In short, if the default value for the cvar is used, g_sChatPrefix is never updated, and stays an empty string. This PR fixes that by reading from the cvar's value in OnConfigsExecuted.

❌ Didn't try to compile ❌ Not tested in game