Mercurial > pidgin
diff src/protocols/oscar/util.c @ 9975:c66345b33b88
[gaim-migrate @ 10886]
Steps in the right direction for oscar
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 08 Sep 2004 03:33:37 +0000 |
parents | 6fd2bd5446e4 |
children | 9f358a718f38 |
line wrap: on
line diff
--- a/src/protocols/oscar/util.c Wed Sep 08 03:13:14 2004 +0000 +++ b/src/protocols/oscar/util.c Wed Sep 08 03:33:37 2004 +0000 @@ -219,6 +219,21 @@ return 0; } +/** + * Determine if a given screen name is an ICQ screen name + * (i.e. it begins with a number). + * + * @sn A valid AIM or ICQ screen name. + * @return 1 if the screen name is an ICQ screen name. Otherwise 0 + * is returned. + */ +faim_export int aim_sn_is_icq(const char *sn) +{ + if (isalpha(sn[0])) + return 0; + return 1; +} + /* * int snlen(const char *) *