From dd4390ce747b2aa4e5e1b3c7bea3640b4abea271 Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Sun, 7 Aug 2016 18:39:37 -0400 Subject: Make addressed regex more restrictive Fixes #21 --- docs/02-event-reference.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/02-event-reference.md b/docs/02-event-reference.md index 3e43ca0..cb3de1d 100644 --- a/docs/02-event-reference.md +++ b/docs/02-event-reference.md @@ -83,8 +83,9 @@ irc-addressed ▶ irc-to-me ▶ irc-notice-channel ▶ irc-notice ▶ This event chain is triggered when the client is addressed in a channel either via a `PRIVMSG` or `NOTICE` IRC message. 'Addressed' means the message line -starts with the current nickname of the client, followed by single whitespace character, `;`, or `,` characters, followed by any number of whitespace; or -in regex terms, matches `/^ $nick <[,:\s]> \s* /`. This prefix portion will be +starts with the current nickname of the client, followed by `;` or `,` +characters, followed by any number of whitespace; or +in regex terms, matches `/^ $nick <[,:]> \s* /`. This prefix portion will be **stripped** from the actual message. Possible message objects received by event handler: -- cgit v1.1