diff options
author | Zoffix Znet <cpan@zoffix.com> | 2016-08-07 22:58:46 -0400 |
---|---|---|
committer | Zoffix Znet <cpan@zoffix.com> | 2016-08-07 22:58:46 -0400 |
commit | b1e795877f2447bc634cbb4b269f9ac8bebd67f3 (patch) | |
tree | cfc45f9e3f861f911d0d7294b9434956ad659e35 /docs/02-event-reference.md | |
parent | 8bb81d24b338773f0c56916f919e0457e0182970 (diff) |
Add `:alias` feature3.006001
Closes #22
Diffstat (limited to 'docs/02-event-reference.md')
-rw-r--r-- | docs/02-event-reference.md | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/02-event-reference.md b/docs/02-event-reference.md index cb3de1d..ab4e702 100644 --- a/docs/02-event-reference.md +++ b/docs/02-event-reference.md @@ -83,9 +83,11 @@ 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 `;` or `,` +starts with the current nickname of the client or one of its aliases, +followed by `;` or `,` characters, followed by any number of whitespace; or -in regex terms, matches `/^ $nick <[,:]> \s* /`. This prefix portion will be +in regex terms, matches `/^ [$nick | @aliases] <[,:]> \s* /`. +This prefix portion will be **stripped** from the actual message. Possible message objects received by event handler: @@ -140,8 +142,8 @@ irc-mentioned ▶ irc-notice-channel ▶ irc-notice ▶ irc-all This event chain is triggered when the client is mentioned in a channel either via a `PRIVMSG` or `NOTICE` IRC message. Being mentioned means the message -contains our nick delimited by word boundaries on both sides; or in regex -terms, matches `/ << $nick >> /`. +contains our nick or one of the aliases delimited by word boundaries on both +sides; or in regex terms, matches `/ << [$nick | @aliases] >> /`. Possible message objects received by event handler: * `IRC::Client::Message::Privmsg::Channel` @@ -306,8 +308,8 @@ irc-addressed ▶ irc-to-me ▶ irc-notice-channel ▶ irc-notice ▶ This event chain is triggered when the client is addressed in a channel via a `PRIVMSG` or `NOTICE` IRC message or receives a private or notice message directly. In cases where the trigger happened due to being addressed -in channel, the prefix used for addressing (nick + `,` or `.` + whitespace) -will be stripped from the message. +in channel, the prefix used for addressing (nick|aliases + `,` or `.` + +whitespace) will be stripped from the message. Possible message objects received by event handler: * `IRC::Client::Message::Privmsg::Channel` |