]> git.0d.be Git - empathy.git/commitdiff
IRC: rename “user_name” regex to “nick_name”
authorWill Thompson <will.thompson@collabora.co.uk>
Tue, 19 Jul 2011 08:15:11 +0000 (09:15 +0100)
committerWill Thompson <will.thompson@collabora.co.uk>
Tue, 19 Jul 2011 10:58:01 +0000 (11:58 +0100)
The 'account’ parameter in Telepathy, to which this regex applies, is
the ‘nickname’ in IRC parlance.

(I'm about to add a regex for what IRC calls ‘usernames’.)

libempathy-gtk/empathy-account-widget.c

index fcc5769a0b80b13b4d2de3134bf9a036131f5627..46db2ac20130649f04b7a1aff938c0b431f66910 100644 (file)
@@ -172,7 +172,7 @@ static guint signals[LAST_SIGNAL] = { 0 };
 
 /* 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"]*)"
+#define IRC_NICK_NAME     "(["ALPHA IRC_SPECIAL"]["ALPHADIGITDASH IRC_SPECIAL"]*)"
 /* Based on http://www.ietf.org/rfc/rfc4622.txt (section 2.2)
  * We just exclude invalid characters to avoid ucschars and other redundant
  * complexity */
@@ -185,7 +185,7 @@ static guint signals[LAST_SIGNAL] = { 0 };
 #define YAHOO_USER_NAME   "(["ALPHA"]["ALPHADIGIT"_\\.]{3,31})"
 
 #define ACCOUNT_REGEX_ICQ      "^"ICQ_USER_NAME"$"
-#define ACCOUNT_REGEX_IRC      "^"IRC_USER_NAME"$"
+#define ACCOUNT_REGEX_IRC      "^"IRC_NICK_NAME"$"
 #define ACCOUNT_REGEX_JABBER   "^"JABBER_USER_NAME"@"HOST"$"
 #define ACCOUNT_REGEX_MSN      "^"MSN_USER_NAME"@"HOST"$"
 #define ACCOUNT_REGEX_YAHOO    "^"YAHOO_USER_NAME"$"