diff options
author | TingPing <tngpng@gmail.com> | 2013-04-06 15:53:21 -0700 |
---|---|---|
committer | TingPing <tngpng@gmail.com> | 2013-04-06 15:53:21 -0700 |
commit | af652a663923622141dc3613748f9e0d722c3873 (patch) | |
tree | 6516198a428b9e8db74b5ef78fdbc34af1774e3d /src/common | |
parent | 812628acb2055b9dbb286fa5a4c58ece1ddf6750 (diff) | |
parent | 6b86940b7b36a6c887c069a6da50d84366e0c671 (diff) |
Merge pull request #510 from RichardHitt/allownick
Allow nick starting with digit despite rfc 2812 violation
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/url.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/url.c b/src/common/url.c index 9b4e30ad..0f88a35b 100644 --- a/src/common/url.c +++ b/src/common/url.c @@ -472,7 +472,15 @@ re_email (void) #define NICKDIG "0-9" /* Note for NICKSPE: \\\\ boils down to a single \ */ #define NICKSPE "\\[\\]\\\\`_^{|}" +#if 0 #define NICK0 "[" NICKPRE "]?[" NICKLET NICKSPE "]" +#else +/* Allow violation of rfc 2812 by allowing digit as first char */ +/* Rationale is that do_an_re() above will anyway look up what */ +/* we find, and that WORD_NICK is the last item in the array */ +/* that do_an_re() runs through. */ +#define NICK0 "[" NICKPRE "]?[" NICKLET NICKDIG NICKSPE "]" +#endif #define NICK1 "[" NICKHYP NICKLET NICKDIG NICKSPE "]*" #define NICK NICK0 NICK1 |