# HG changeset patch
# User Mark Doliner <mark@kingant.net>
# Date 1083820524 0
# Node ID 4274f888477e82dec4f4ada51f37c62c5074e21c
# Parent  dd6b4f259f5b58755dbcf7ec4d5890b36a7a4da4
[gaim-migrate @ 9654]
Patch from Evan Schoenberg of Adium to allow Gaim to sign on AIM
screen names containing _'s.  This is apparently valid for @mac.com
accounts, although I wasn't able to create an AIM account.

committer: Tailor Script <tailor@pidgin.im>

diff -r dd6b4f259f5b -r 4274f888477e src/protocols/oscar/util.c
--- a/src/protocols/oscar/util.c	Thu May 06 05:10:15 2004 +0000
+++ b/src/protocols/oscar/util.c	Thu May 06 05:15:24 2004 +0000
@@ -179,7 +179,7 @@
 			if (!isdigit(sn[i]))
 				return 0;
 		} else {
-			if (!isalnum(sn[i]) && (sn[i] != ' ') && (sn[i] != '@') && (sn[i] != '.'))
+			if (!isalnum(sn[i]) && (sn[i] != ' ') && (sn[i] != '@') && (sn[i] != '.') && (sn[i] != '_'))
 				return 0;
 		}
 		i++;