# HG changeset patch # User Mark Doliner # Date 1182761284 0 # Node ID c298830e237f41951a96e0b1309d23051d497096 # Parent 5cb7e29cbee3727c8cee9efe8530ff75751f6864 Make sure we still don't allow screen names of the form "1whatever" diff -r 5cb7e29cbee3 -r c298830e237f libpurple/protocols/oscar/util.c --- 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] != '.') &&