Mercurial > pidgin.yaz
diff src/prpl.c @ 7956:1b8261f374ea
[gaim-migrate @ 8631]
This is the death of protocol numbers. There are probably now a few
functions that should now go away, but i'll let our crack team of crazy
patch writers figure out which ones they are.
out-of-tree and unofficial prpl-writers, rejoice!
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 29 Dec 2003 09:03:47 +0000 |
parents | 6db061321ec4 |
children | fa6395637e2c |
line wrap: on
line diff
--- a/src/prpl.c Mon Dec 29 08:59:22 2003 +0000 +++ b/src/prpl.c Mon Dec 29 09:03:47 2003 +0000 @@ -78,7 +78,7 @@ } GaimPlugin * -gaim_find_prpl(GaimProtocol type) +gaim_find_prpl(const char *id) { GList *l; GaimPlugin *plugin; @@ -89,7 +89,7 @@ /* Just In Case (TM) */ if (GAIM_IS_PROTOCOL_PLUGIN(plugin)) { - if (GAIM_PLUGIN_PROTOCOL_INFO(plugin)->protocol == type) + if (!strcmp(plugin->info->id, id)) return plugin; } }