Mercurial > pidgin
diff libpurple/plugin.c @ 20715:df58938e9f61
Try to load a plugin from the saved preference even if it is not in the standard path.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 29 Sep 2007 08:52:41 +0000 |
parents | 44b4e8bd759b |
children | 96929e7acb86 a8332645ce5b |
line wrap: on
line diff
--- a/libpurple/plugin.c Sat Sep 29 08:33:37 2007 +0000 +++ b/libpurple/plugin.c Sat Sep 29 08:52:41 2007 +0000 @@ -1275,13 +1275,9 @@ if (basename) basename = purple_plugin_get_basename(filename); - if ((plugin = purple_plugins_find_with_filename(filename)) != NULL) - { - purple_debug_info("plugins", "Loading saved plugin %s\n", - plugin->path); - purple_plugin_load(plugin); - } - else if (basename && (plugin = purple_plugins_find_with_basename(basename)) != NULL) + if (((plugin = purple_plugins_find_with_filename(filename)) != NULL) || + (basename && (plugin = purple_plugins_find_with_basename(basename)) != NULL) || + ((plugin = purple_plugin_probe(filename)) != NULL)) { purple_debug_info("plugins", "Loading saved plugin %s\n", plugin->path);