diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/textevents.in | 2 | ||||
-rw-r--r-- | src/common/url.c | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/common/textevents.in b/src/common/textevents.in index 7b7050ed..034a8532 100644 --- a/src/common/textevents.in +++ b/src/common/textevents.in @@ -115,7 +115,7 @@ pevt_generic_none_help Channel Message XP_TE_CHANMSG pevt_chanmsg_help -%C18%H<%H$4$1%H>%H%O$t$2 +%C18%H<%H$4$1%C18%H>%H%O$t$2 n4 Channel Mode Generic 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 |