changeset 9681:6fd2bd5446e4

[gaim-migrate @ 10533] A patch from Bjoern Voigt to let oscar use "-" in screen names. Who knew? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 05 Aug 2004 21:26:44 +0000
parents 958cfbb47ad6
children 77c63fc5b6d7
files src/protocols/oscar/util.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/util.c	Thu Aug 05 21:15:41 2004 +0000
+++ b/src/protocols/oscar/util.c	Thu Aug 05 21:26:44 2004 +0000
@@ -142,6 +142,7 @@
 /**
  * Check if the given screen name is a valid AIM screen name.
  * Example: BobDole
+ * Example: Henry_Ford@mac.com
  *
  * @return 1 if the screen name is valid, 0 if not.
  */
@@ -150,7 +151,9 @@
 	int i;
 
 	for (i = 0; sn[i] != '\0'; i++) {
-		if (!isalnum(sn[i]) && (sn[i] != ' ') && (sn[i] != '@') && (sn[i] != '.') && (sn[i] != '_'))
+		if (!isalnum(sn[i]) && (sn[i] != ' ') &&
+			(sn[i] != '@') && (sn[i] != '.') &&
+			(sn[i] != '_') && (sn[i] != '-'))
 			return 0;
 	}