aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-17 21:03:02 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-17 21:24:38 +0800
commit7980966fd3bb38fde70946c057704b1b5f409968 (patch)
tree83c2a0fec93f80008cc899545857ab29a93f6366 /libempathy-gtk
parent1dc905b194ce6e1be82af2e111cdf7a913dd43fc (diff)
downloadgsoc2013-empathy-7980966fd3bb38fde70946c057704b1b5f409968.tar
gsoc2013-empathy-7980966fd3bb38fde70946c057704b1b5f409968.tar.gz
gsoc2013-empathy-7980966fd3bb38fde70946c057704b1b5f409968.tar.bz2
gsoc2013-empathy-7980966fd3bb38fde70946c057704b1b5f409968.tar.lz
gsoc2013-empathy-7980966fd3bb38fde70946c057704b1b5f409968.tar.xz
gsoc2013-empathy-7980966fd3bb38fde70946c057704b1b5f409968.tar.zst
gsoc2013-empathy-7980966fd3bb38fde70946c057704b1b5f409968.zip
Allow to enter an email address as ICQ ID (#645014)
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-widget.c7
1 files 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"]*)"