From 57a5004f4ebd43723e77fb0af899e6a212c87f8f Mon Sep 17 00:00:00 2001 From: Vincent Herbet Date: Thu, 27 Aug 2015 17:48:57 +0200 Subject: [PATCH] Fix typo Related to #266. Looks like I've changed the prefix afterward at some point for some reason, but engine is retarded and with `plugin.something.cfg` it will understand extension is `something` instead of `cfg` ; and will fail to execute as it's an invalid extension (only `cfg` and `rc` are allowed). --- amxmodx/amxmodx.cpp | 2 +- plugins/include/amxmodx.inc | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index 28961137..5f5213ec 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -4506,7 +4506,7 @@ static cell AMX_NATIVE_CALL AutoExecConfig(AMX *amx, cell *params) } static char newName[PLATFORM_MAX_PATH]; - UTIL_Format(newName, sizeof(newName), "plugin.%s", pluginName); + UTIL_Format(newName, sizeof(newName), "plugin-%s", pluginName); name = newName; } diff --git a/plugins/include/amxmodx.inc b/plugins/include/amxmodx.inc index c1e94aa0..4cf896af 100755 --- a/plugins/include/amxmodx.inc +++ b/plugins/include/amxmodx.inc @@ -3217,9 +3217,10 @@ forward OnAutoConfigsBuffered(); /** * Specifies that the given config file should be executed after plugin load. - * - * @note OnConfigsExecuted() will not be called until the config file has executed, + * + * @note OnConfigsExecuted() will not be called until the config file has executed, * but it will be called if the execution fails. + * @note The name parameter should not contain dots, otherwise file will not be executed. * * @param autoCreate If true, and the config file does not exist, such a config * file will be automatically created and populated with