aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoffix Znet <cpan@zoffix.com>2016-05-27 15:04:00 -0400
committerZoffix Znet <cpan@zoffix.com>2016-05-27 15:04:00 -0400
commitb5e382ef6ff572e2b1d7330fb8c57c6a4a2e21eb (patch)
tree5227c082dd600f6df4fb993ebffd78c895273c45
parent625b182489e072cad6af5db35e750535a835696f (diff)
Move mode events at the end
-rw-r--r--DESIGN/01-main.md58
1 files changed, 29 insertions, 29 deletions
diff --git a/DESIGN/01-main.md b/DESIGN/01-main.md
index 1428ac4..9758fb6 100644
--- a/DESIGN/01-main.md
+++ b/DESIGN/01-main.md
@@ -178,35 +178,6 @@ These sets of events do not have a corresponding IRC command defined by the
protocol and instead are offered to make listening for a specific kind
of events easier.
-## `irc-mode-channel`
-
-```perl6
- # :zoffix!zoffix@127.0.0.1 MODE #perl6 +o zoffix2
- # :zoffix!zoffix@127.0.0.1 MODE #perl6 +bbb Foo!*@* Bar!*@* Ber!*@*
-
- method irc-mode-channel ($msg) {
- printf "Nick %s with usermask %s set mode(s) %s in channel %s\n",
- .nick, .usermask, .modes, .channel given $msg;
- }
-```
-
-Emitted when IRC `MODE` command is received and it's being operated on a
-channel, see `irc-mode` event for details.
-
-## `irc-mode-user`
-
-```perl6
- # :zoffix2!f@127.0.0.1 MODE zoffix2 +w
-
- method irc-mode-user ($msg) {
- printf "Nick %s with usermask %s set mode(s) %s on user %s\n",
- .nick, .usermask, .modes, .who given $msg;
- }
-```
-
-Emitted when IRC `MODE` command is received and it's being operated on a
-user, see `irc-mode` event for details.
-
## `irc-to-me`
```perl6
@@ -334,6 +305,35 @@ Similar to `irc-started`, except will be emitted every time a
of the requested channels. That is, we'll wait to either receive the
full user list or error message for each of the channels we're joining.
+## `irc-mode-channel`
+
+```perl6
+ # :zoffix!zoffix@127.0.0.1 MODE #perl6 +o zoffix2
+ # :zoffix!zoffix@127.0.0.1 MODE #perl6 +bbb Foo!*@* Bar!*@* Ber!*@*
+
+ method irc-mode-channel ($msg) {
+ printf "Nick %s with usermask %s set mode(s) %s in channel %s\n",
+ .nick, .usermask, .modes, .channel given $msg;
+ }
+```
+
+Emitted when IRC `MODE` command is received and it's being operated on a
+channel, see `irc-mode` event for details.
+
+## `irc-mode-user`
+
+```perl6
+ # :zoffix2!f@127.0.0.1 MODE zoffix2 +w
+
+ method irc-mode-user ($msg) {
+ printf "Nick %s with usermask %s set mode(s) %s on user %s\n",
+ .nick, .usermask, .modes, .who given $msg;
+ }
+```
+
+Emitted when IRC `MODE` command is received and it's being operated on a
+user, see `irc-mode` event for details.
+
# Numeric Events
Numeric IRC events can be subscribed to by defining a method with name