From 20173e580d23acd30e710ad692e623f6a0c6589d Mon Sep 17 00:00:00 2001 From: Blair Bonnett Date: Fri, 17 Aug 2012 10:10:46 +1200 Subject: [PATCH] Revert "Check plugin API version in UCMD plugin." This reverts commit a12e79c7ce4a1c430a33d93d6fdad34011744601. 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)) --- src/plugins/mod_ucmd.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/plugins/mod_ucmd.c b/src/plugins/mod_ucmd.c index 075372e..ca616cb 100644 --- a/src/plugins/mod_ucmd.c +++ b/src/plugins/mod_ucmd.c @@ -483,13 +483,6 @@ int parse_config(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."); - /* 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. */ if(parse_config(plugin, config) == -1) return -1;