From 2735caba94b79508f961fd4ecacb21d119fa2eef Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Sat, 28 May 2016 09:05:07 -0400 Subject: Write stuff --- DESIGN/01-main.md | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/DESIGN/01-main.md b/DESIGN/01-main.md index 1c53f82..848e6e9 100644 --- a/DESIGN/01-main.md +++ b/DESIGN/01-main.md @@ -376,20 +376,6 @@ implementation of `PRIVMSG` handler that receives the message object: } ``` -The message object should include a means to access the Client Object to -perform operations best suited for it and not the message object. Here is -a possible implementation to re-emit a `NOTICE` message sent to channel -`#perl6` as a `PRIVMSG` message. - -```perl6 - method irc-notice ($msg) { - $.irc.emit: 'PRIVMSG', $msg - if $msg.channel eq '#perl6'; - - IRC_NEXT; - } -``` - A plugin can send messages and emit events at will: ```perl6 -- cgit v1.1