Mercurial > pidgin
diff libpurple/protocols/oscar/oscar.c @ 18279:48d2c9dbfcc2
Allow AIM screen names of the form "1abc@example.com" In most places
we determine if a buddy is an ICQ user by checking if the first
character of the screen name is a digit. But this check doesn't work
now that email addresses are allowed for AIM screen names.
This fixes #1430.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 25 Jun 2007 08:41:49 +0000 |
parents | c3d5b91be081 |
children | 5cb7e29cbee3 |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c Mon Jun 25 08:24:12 2007 +0000 +++ b/libpurple/protocols/oscar/oscar.c Mon Jun 25 08:41:49 2007 +0000 @@ -425,7 +425,7 @@ charsetstr1 = "UCS-2BE"; charsetstr2 = "UTF-8"; } else if (charset == AIM_CHARSET_CUSTOM) { - if ((sourcesn != NULL) && isdigit(sourcesn[0])) + if ((sourcesn != NULL) && aim_sn_is_icq(sourcesn)) charsetstr1 = purple_account_get_string(account, "encoding", OSCAR_DEFAULT_CUSTOM_ENCODING); else charsetstr1 = "ISO-8859-1";