Fix OnLibrary* spam

This commit is contained in:
BotoX
2019-10-04 12:05:05 +02:00
parent aafc5a275e
commit b68f66c85a
3 changed files with 47 additions and 6 deletions
@@ -105,8 +105,21 @@ public void OnAllPluginsLoaded()
(g_Extension_Voice ? "loaded" : "not loaded"));
}
public void OnLibraryAdded(const char[] name) { OnAllPluginsLoaded(); }
public void OnLibraryRemoved(const char[] name) { OnAllPluginsLoaded(); }
public void OnLibraryAdded(const char[] name)
{
if(StrEqual(name, "voiceannounce_ex"))
g_Plugin_voiceannounce_ex = true;
else if(StrEqual(name, "Voice"))
g_Extension_Voice = true;
}
public void OnLibraryRemoved(const char[] name)
{
if(StrEqual(name, "voiceannounce_ex"))
g_Plugin_voiceannounce_ex = false;
else if(StrEqual(name, "Voice"))
g_Extension_Voice = false;
}
public Action Command_Admins(int client, int args)
{