Mercurial > pidgin
comparison src/plugin.c @ 12081:5a08737f76c6
[gaim-migrate @ 14378]
sf patch #1355683, from Evan Schoenberg
"As discussed in #gaim, static plugins are fairly broken at present...
this may not be a fix for all possible plugins, but it certainly fixes all
the prpls and the ssl plugin to be able to work. We need to call the
plugin_load() function manually since plugins_probe() isn't going to
do it..."
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Mon, 14 Nov 2005 07:26:01 +0000 |
| parents | 3cf98e532126 |
| children | cb77957d644c |
comparison
equal
deleted
inserted
replaced
| 12080:3b52d94437f3 | 12081:5a08737f76c6 |
|---|---|
| 1138 | 1138 |
| 1139 #ifdef GAIM_PLUGINS | 1139 #ifdef GAIM_PLUGINS |
| 1140 /* This plugin should be probed and maybe loaded--add it to the queue */ | 1140 /* This plugin should be probed and maybe loaded--add it to the queue */ |
| 1141 load_queue = g_list_append(load_queue, plugin); | 1141 load_queue = g_list_append(load_queue, plugin); |
| 1142 #else | 1142 #else |
| 1143 if (plugin->info->type == GAIM_PLUGIN_PROTOCOL) | 1143 if (plugin->info != NULL) |
| 1144 protocol_plugins = g_list_insert_sorted(protocol_plugins, plugin, | 1144 { |
| 1145 (GCompareFunc)compare_prpl); | 1145 if (plugin->info->type == GAIM_PLUGIN_PROTOCOL) |
| 1146 protocol_plugins = g_list_insert_sorted(protocol_plugins, plugin, | |
| 1147 (GCompareFunc)compare_prpl); | |
| 1148 if (plugin->info->load != NULL) | |
| 1149 if (!plugin->info->load(plugin)) | |
| 1150 return FALSE; | |
| 1151 } | |
| 1146 #endif | 1152 #endif |
| 1147 | 1153 |
| 1148 plugins = g_list_append(plugins, plugin); | 1154 plugins = g_list_append(plugins, plugin); |
| 1149 | 1155 |
| 1150 return TRUE; | 1156 return TRUE; |
