Restore SQL_CheckConfig Behavior (#873)

* Change lookup strategy for SQL_CheckConfig

* Ensure db conf lookup failures default to ..default

* Revert "Ensure db conf lookup failures default to ..default"

This reverts commit 03dc703daeeeadaa134e2160bf2c7cd812402758.
This commit is contained in:
Michael Flaherty 2018-10-07 14:08:11 -07:00 committed by Kyle Sanderson
parent a9ca1a2fd6
commit 34e91fbd81

View File

@ -1425,7 +1425,7 @@ static cell_t SQL_CheckConfig(IPluginContext *pContext, const cell_t *params)
char *name;
pContext->LocalToString(params[1], &name);
return (g_DBMan.FindDatabaseConf(name) != NULL) ? 1 : 0;
return (g_DBMan.GetDatabaseConf(name) != nullptr) ? 1 : 0;
}
static cell_t SQL_ConnectCustom(IPluginContext *pContext, const cell_t *params)