aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-08-04 21:38:45 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-08-04 21:39:12 +0800
commitd337ef853cc47ff78fbfa0ac54cf3d795832a2b7 (patch)
treec40c42d8d71b431ce79709b15e9b0488fffb8f3a
parentf9716e53331ccbd0725a14089ad30e9d6c84a463 (diff)
downloadgsoc2013-empathy-d337ef853cc47ff78fbfa0ac54cf3d795832a2b7.tar
gsoc2013-empathy-d337ef853cc47ff78fbfa0ac54cf3d795832a2b7.tar.gz
gsoc2013-empathy-d337ef853cc47ff78fbfa0ac54cf3d795832a2b7.tar.bz2
gsoc2013-empathy-d337ef853cc47ff78fbfa0ac54cf3d795832a2b7.tar.lz
gsoc2013-empathy-d337ef853cc47ff78fbfa0ac54cf3d795832a2b7.tar.xz
gsoc2013-empathy-d337ef853cc47ff78fbfa0ac54cf3d795832a2b7.tar.zst
gsoc2013-empathy-d337ef853cc47ff78fbfa0ac54cf3d795832a2b7.zip
Allow to enter an email address as Yahoo ID
https://bugzilla.gnome.org/show_bug.cgi?id=655959
-rw-r--r--libempathy-gtk/empathy-account-widget.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 5bdea6aff..26b30f6e9 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -190,8 +190,10 @@ static guint signals[LAST_SIGNAL] = { 0 };
* http://www.hypothetic.org/docs/msn/general/names.php */
#define MSN_USER_NAME EMAIL_LOCALPART
/* Based on the official help:
- * http://help.yahoo.com/l/us/yahoo/edit/registration/edit-01.html */
-#define YAHOO_USER_NAME "(["ALPHA"]["ALPHADIGIT"_\\.]{3,31})"
+ * http://help.yahoo.com/l/us/yahoo/edit/registration/edit-01.html
+ * Looks like an email address can be used as well (bgo #655959)
+ * */
+#define YAHOO_USER_NAME "(["ALPHA"]["ALPHADIGIT"_\\.]{3,31})|("EMAIL_LOCALPART"@"HOST")"
#define ACCOUNT_REGEX_ICQ "^"ICQ_USER_NAME"$"
#define ACCOUNT_REGEX_IRC "^"IRC_NICK_NAME"$"