aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoffix Znet <cpan@zoffix.com>2016-07-28 23:06:52 -0400
committerZoffix Znet <cpan@zoffix.com>2016-07-28 23:06:52 -0400
commit5e8e694253bdf96a4bf5963bc5d20b6afbde8967 (patch)
treec21b893eac7046208b99d02630e76cbe1806322b
parentd1bd6a42bdbd6269a648e48bbaf8bd91a7ca8d12 (diff)
Add irc-started event
-rw-r--r--docs/02-event-reference.md2
-rw-r--r--lib/IRC/Client.pm61
2 files changed, 3 insertions, 0 deletions
diff --git a/docs/02-event-reference.md b/docs/02-event-reference.md
index 7b6882d..5e12906 100644
--- a/docs/02-event-reference.md
+++ b/docs/02-event-reference.md
@@ -36,6 +36,8 @@ table](https://www.alien.net.au/irc/irc2numerics.html) for meaning of codes,
depending on the server used.
```
+ irc-started
+
irc-addressed ▶ irc-to-me ▶ irc-privmsg-channel ▶ irc-privmsg ▶ irc-all
irc-mentioned ▶ irc-privmsg-channel ▶ irc-privmsg ▶ irc-all
irc-privmsg-channel ▶ irc-privmsg ▶ irc-all
diff --git a/lib/IRC/Client.pm6 b/lib/IRC/Client.pm6
index 44393f3..adc885b 100644
--- a/lib/IRC/Client.pm6
+++ b/lib/IRC/Client.pm6
@@ -81,6 +81,7 @@ method part (*@channels, :$server) {
method run {
.irc = self for @.plugins.grep: { .DEFINITE and .^can: 'irc' };
+ .irc-started for self!plugs-that-can('irc-started', $e);
start {
my $closed = $!event-pipe.closed;