# HG changeset patch # User Christian Hammond # Date 1082654156 0 # Node ID 184b8c3b6d0946047cd788e6bc7c8fcc271abbbc # Parent 2db51720fd0996e2ed9611febdbf9a2664befccc [gaim-migrate @ 9514] Patch by Stu Tomlinson to fix some screwups I made when moving things to the new plugin API version. committer: Tailor Script diff -r 2db51720fd09 -r 184b8c3b6d09 plugins/tcl/tcl.c --- a/plugins/tcl/tcl.c Thu Apr 22 16:24:05 2004 +0000 +++ b/plugins/tcl/tcl.c Thu Apr 22 17:15:56 2004 +0000 @@ -330,7 +330,7 @@ static GaimPluginLoaderInfo tcl_loader_info = { - GAIM_PLUGIN_API_VERSION, + GAIM_LOADER_API_VERSION, NULL, tcl_probe_plugin, tcl_load_plugin, diff -r 2db51720fd09 -r 184b8c3b6d09 src/plugin.c --- a/src/plugin.c Thu Apr 22 16:24:05 2004 +0000 +++ b/src/plugin.c Thu Apr 22 17:15:56 2004 +0000 @@ -232,8 +232,9 @@ if (plugin->info->api_version != GAIM_PLUGIN_API_VERSION) { + gaim_debug(GAIM_DEBUG_ERROR, "plugins", "%s is unloadable: API version mismatch %d (need %d)\n", + plugin->path, plugin->info->api_version, GAIM_PLUGIN_API_VERSION); gaim_plugin_destroy(plugin); - return NULL; } @@ -941,6 +942,8 @@ if (loader_info == NULL || loader_info->api_version != GAIM_LOADER_API_VERSION) { + gaim_debug(GAIM_DEBUG_ERROR, "plugins", "%s is unloadable: API version mismatch %d (need %d)\n", + plugin->path, loader_info->api_version, GAIM_LOADER_API_VERSION); return FALSE; } @@ -955,6 +958,8 @@ if (prpl_info == NULL || prpl_info->api_version != GAIM_PRPL_API_VERSION) { + gaim_debug(GAIM_DEBUG_ERROR, "plugins", "%s is unloadable: API version mismatch %d (need %d)\n", + plugin->path, prpl_info->api_version, GAIM_PRPL_API_VERSION); return FALSE; }