[PATCH] allow email address style logins



The following patch allows for username's in drivel to look like email
addresses.  One of the blogs I use does logins that way, and drivel throws
errors when I'm trying to type in the address.

	-Sean

-- 
__________________________________________________________________

Sean Dague                                       Mid-Hudson Valley
sean at dague dot net                            Linux Users Group
http://dague.net                                 http://mhvlug.org

There is no silver bullet.  Plus, werewolves make better neighbors
than zombies, and they tend to keep the vampire population down.
__________________________________________________________________
Only in drivel-2.0.2.sean: drivel-2.0.2
diff -ur drivel-2.0.2/src/main.c drivel-2.0.2.sean/src/main.c
--- drivel-2.0.2/src/main.c	2005-07-08 23:49:07.000000000 -0400
+++ drivel-2.0.2.sean/src/main.c	2006-04-24 20:23:32.000000000 -0400
@@ -245,7 +245,7 @@
 	{
 		c = g_utf8_get_char_validated (p, -1);
 
-		if (!g_unichar_isalnum (c) && c != '_' && c!= '-')
+		if (!g_unichar_isalnum (c) && c != '_' && c!= '-' && c!= '@' && c!= '.')
 		{
 			retval = FALSE;
 			break;

Attachment: pgp28yyl2l37c.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]