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.
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 eventOnSettingChanged
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 inOnConfigsExecuted
.❌ Didn't try to compile ❌ Not tested in game