Mercurial > pidgin.yaz
comparison libpurple/protocols/oscar/util.c @ 20970:84c7f5cdb8f3
Me and Jim Rodgers from meebo don't think that . _ and - are valid
characters in a normal AIM screen name. If I'm wrong then please
let me know.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 16 Oct 2007 07:45:02 +0000 |
parents | 44b4e8bd759b |
children | 76b501dfe231 |
comparison
equal
deleted
inserted
replaced
20969:17ee8c81c99b | 20970:84c7f5cdb8f3 |
---|---|
154 /* Normal AIM screen names can't start with a number */ | 154 /* Normal AIM screen names can't start with a number */ |
155 if (isdigit(sn[0])) | 155 if (isdigit(sn[0])) |
156 return FALSE; | 156 return FALSE; |
157 | 157 |
158 for (i = 0; sn[i] != '\0'; i++) { | 158 for (i = 0; sn[i] != '\0'; i++) { |
159 if (!isalnum(sn[i]) && (sn[i] != ' ') && | 159 if (!isalnum(sn[i]) && (sn[i] != ' ')) |
160 (sn[i] != '.') && | |
161 (sn[i] != '_') && (sn[i] != '-')) | |
162 return FALSE; | 160 return FALSE; |
163 } | 161 } |
164 | 162 |
165 return TRUE; | 163 return TRUE; |
166 } | 164 } |