Mercurial > pidgin.yaz
changeset 18281:c298830e237f
Make sure we still don't allow screen names of the form "1whatever"
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 25 Jun 2007 08:48:04 +0000 |
parents | 5cb7e29cbee3 |
children | 0fb8f1b1f0e9 |
files | libpurple/protocols/oscar/util.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/util.c Mon Jun 25 08:47:36 2007 +0000 +++ b/libpurple/protocols/oscar/util.c Mon Jun 25 08:48:04 2007 +0000 @@ -151,6 +151,10 @@ if (purple_email_is_valid(sn)) return TRUE; + /* Normal AIM screen names can't start with a number */ + if (isdigit(sn[0])) + return FALSE; + for (i = 0; sn[i] != '\0'; i++) { if (!isalnum(sn[i]) && (sn[i] != ' ') && (sn[i] != '.') &&