diff options
author | Zoffix Znet <cpan@zoffix.com> | 2016-05-28 09:05:07 -0400 |
---|---|---|
committer | Zoffix Znet <cpan@zoffix.com> | 2016-05-28 09:05:07 -0400 |
commit | 2735caba94b79508f961fd4ecacb21d119fa2eef (patch) | |
tree | cbec21c3b96bd2d32accc60f0dc5baedcf83a2dc /DESIGN/01-main.md | |
parent | fec1b475f9c6ff12081543565687d495f25e608f (diff) |
Write stuff
Diffstat (limited to 'DESIGN/01-main.md')
-rw-r--r-- | DESIGN/01-main.md | 14 |
1 files changed, 0 insertions, 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 |