From 0a455a32fff68cbba784c2590106da2d180737c9 Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Sat, 28 May 2016 09:11:21 -0400 Subject: Write stuff --- DESIGN/01-main.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/DESIGN/01-main.md b/DESIGN/01-main.md index 642fe24..5144710 100644 --- a/DESIGN/01-main.md +++ b/DESIGN/01-main.md @@ -439,10 +439,10 @@ The message object received by all non-custom events is an event-specific subclass of `IRC::Client::Message`. The subclass is named `IRC::Client::Message::$NAME`, where `$NAME` is: -* Named and Convenience events use their names without `irc-` part, with any `-` +* *Named* and *Convenience* events use their names without `irc-` part, with any `-` changed to `::` and with each word written in `Title Case`. e.g. message object for `irc-privmsg-me` is `IRC::Client::Message::Privmsg::Me` -* Numeric events always receive `IRC::Client::Message::Numeric` message +* *Numeric* events always receive `IRC::Client::Message::Numeric` message object, regardless of the actual number of the event. Along with event-specific methods @@ -669,6 +669,20 @@ channel, see `irc-mode` event for details. Emitted when IRC `MODE` command is received and it's being operated on a user, see `irc-mode` event for details. +## `irc-all` + +```perl6 + method irc-all ($msg) { + say "Received an event: $msg.perl()"; + return IRC_NEXT; + } +``` + +Emitted for all events and is mostly useful for debugging. The type of the +message object received will depend on the type of the event that generated +the message. This event will be triggered *AFTER* all other event handlers +in the current plugin are processed. + # Numeric Events Numeric IRC events can be subscribed to by defining a method with name -- cgit v1.1