Revert "Check plugin API version in UCMD plugin."
This reverts commit a12e79c7ce
. There is
no need to check the plugin API version within the plugin itself as
pluginloader.c does the following check (currently line 133):
(handle->plugin_api_version == PLUGIN_API_VERSION &&
handle->plugin_funcs_size == sizeof(struct plugin_funcs))
This commit is contained in:
parent
f40451a24c
commit
20173e580d
@ -483,13 +483,6 @@ int parse_config(struct plugin_handle* plugin, const char* config)
|
|||||||
int plugin_register(struct plugin_handle *plugin, const char *config){
|
int plugin_register(struct plugin_handle *plugin, const char *config){
|
||||||
PLUGIN_INITIALIZE(plugin, "User command plugin", "0.1", "Provide custom commands to users.");
|
PLUGIN_INITIALIZE(plugin, "User command plugin", "0.1", "Provide custom commands to users.");
|
||||||
|
|
||||||
/* Need version 2 or later of the plugin API. */
|
|
||||||
if(plugin->plugin_api_version < 2)
|
|
||||||
{
|
|
||||||
plugin->error_msg = "UCMD support requires version 2 or later of the plugin API";
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Attempt to parse the config we were given. */
|
/* Attempt to parse the config we were given. */
|
||||||
if(parse_config(plugin, config) == -1) return -1;
|
if(parse_config(plugin, config) == -1) return -1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user