# HG changeset patch # User Richard Laager # Date 1142276220 0 # Node ID 94d6dedf700ad1f21dbb02441af7f1ee7b35cfdd # Parent 2f0d4179ec0525b1896013fa4282a1cb455fac7d [gaim-migrate @ 15874] Reformat and refactor a couple small blocks of code so I can understand what is happening. committer: Tailor Script diff -r 2f0d4179ec05 -r 94d6dedf700a src/protocols/yahoo/yahoo_profile.c --- a/src/protocols/yahoo/yahoo_profile.c Mon Mar 13 18:51:47 2006 +0000 +++ b/src/protocols/yahoo/yahoo_profile.c Mon Mar 13 18:57:00 2006 +0000 @@ -844,13 +844,19 @@ /* Check whether the profile is written in a supported language */ for (lang = 0;; lang += 1) { last_updated_string = profile_langs[lang].last_updated_string; - if (!last_updated_string) break; + if (!last_updated_string) + break; + p = strstr(url_text, last_updated_string); - if (p && profile_langs[lang].det && !strstr(url_text, profile_langs[lang].det)) { - p = NULL; + + if (p) { + if (profile_langs[lang].det && !strstr(url_text, profile_langs[lang].det)) + p = NULL; + else + break; } - if (p) break; } + if (p) { for (strid = 0; profile_strings[strid].lang != XX; strid += 1) { if (profile_strings[strid].lang == profile_langs[lang].lang) break;