Mercurial > pidgin
diff libpurple/prpl.c @ 25894:a6e3cb32cdd2
Patch from Paul Aurich to add purple_strequal to help readability and simplicity of code. Ie, don't need to negate the value of strcmp, since this does a strcmp and does the negation for us
closes #7790
committer: Gary Kramlich <grim@reaperworld.com>
| author | Paul Aurich <paul@darkrain42.org> |
|---|---|
| date | Tue, 06 Jan 2009 03:39:51 +0000 |
| parents | 785db7300ef2 |
| children | 94a6eb10c691 |
line wrap: on
line diff
--- a/libpurple/prpl.c Fri Jan 02 22:52:17 2009 +0000 +++ b/libpurple/prpl.c Tue Jan 06 03:39:51 2009 +0000 @@ -511,7 +511,7 @@ for (l = purple_plugins_get_protocols(); l != NULL; l = l->next) { plugin = (PurplePlugin *)l->data; - if (!strcmp(plugin->info->id, id)) + if (purple_strequal(plugin->info->id, id)) return plugin; }
