From 7980966fd3bb38fde70946c057704b1b5f409968 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 17 Mar 2011 14:03:02 +0100 Subject: Allow to enter an email address as ICQ ID (#645014) --- libempathy-gtk/empathy-account-widget.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c index f4d6f7e9c..ab3476327 100644 --- a/libempathy-gtk/empathy-account-widget.c +++ b/libempathy-gtk/empathy-account-widget.c @@ -169,8 +169,11 @@ static guint signals[LAST_SIGNAL] = { 0 }; /* UIN is digital according to the unofficial specification: * http://iserverd.khstu.ru/docum_ext/icqv5.html#CTS - * 5 digits minimun according to http://en.wikipedia.org/wiki/ICQ#UIN */ -#define ICQ_USER_NAME "(["DIGIT"]{5,})" + * 5 digits minimum according to http://en.wikipedia.org/wiki/ICQ#UIN + * According to an user, we can also provide an email address instead of the + * ICQ UIN. */ +#define ICQ_USER_NAME "((["DIGIT"]{5,})|"EMAIL_LOCALPART"@"HOST")" + /* Based on http://www.ietf.org/rfc/rfc2812.txt (section 2.3.1) */ #define IRC_SPECIAL "_\\[\\]{}\\\\|`^" #define IRC_USER_NAME "(["ALPHA IRC_SPECIAL"]["ALPHADIGITDASH IRC_SPECIAL"]*)" -- cgit v1.2.3