Mercurial > pidgin
comparison libpurple/plugin.c @ 20298:a2220ad38ebd
applied changes from 63162f419a649bdd77b85cff73c4c490ec863ed1
through 70099adae9dd083166660f2de8b4ee6f447d9d08
log message:
| Try to load a plugin from the saved preference even if it is not in the standard path.
committer: Luke Schierer <lschiere@pidgin.im>
| author | Sadrul Habib Chowdhury <imadil@gmail.com> |
|---|---|
| date | Fri, 19 Oct 2007 16:22:08 +0000 |
| parents | 44b4e8bd759b |
| children | 96929e7acb86 a8332645ce5b |
comparison
equal
deleted
inserted
replaced
| 20297:40a6d017f18d | 20298:a2220ad38ebd |
|---|---|
| 1273 | 1273 |
| 1274 /* Strip the extension */ | 1274 /* Strip the extension */ |
| 1275 if (basename) | 1275 if (basename) |
| 1276 basename = purple_plugin_get_basename(filename); | 1276 basename = purple_plugin_get_basename(filename); |
| 1277 | 1277 |
| 1278 if ((plugin = purple_plugins_find_with_filename(filename)) != NULL) | 1278 if (((plugin = purple_plugins_find_with_filename(filename)) != NULL) || |
| 1279 { | 1279 (basename && (plugin = purple_plugins_find_with_basename(basename)) != NULL) || |
| 1280 purple_debug_info("plugins", "Loading saved plugin %s\n", | 1280 ((plugin = purple_plugin_probe(filename)) != NULL)) |
| 1281 plugin->path); | |
| 1282 purple_plugin_load(plugin); | |
| 1283 } | |
| 1284 else if (basename && (plugin = purple_plugins_find_with_basename(basename)) != NULL) | |
| 1285 { | 1281 { |
| 1286 purple_debug_info("plugins", "Loading saved plugin %s\n", | 1282 purple_debug_info("plugins", "Loading saved plugin %s\n", |
| 1287 plugin->path); | 1283 plugin->path); |
| 1288 purple_plugin_load(plugin); | 1284 purple_plugin_load(plugin); |
| 1289 } | 1285 } |
