aboutsummaryrefslogtreecommitdiff
path: root/lib/IRC/Client.pm6
diff options
context:
space:
mode:
Diffstat (limited to 'lib/IRC/Client.pm6')
-rw-r--r--lib/IRC/Client.pm64
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/IRC/Client.pm6 b/lib/IRC/Client.pm6
index eaffb23..59efa97 100644
--- a/lib/IRC/Client.pm6
+++ b/lib/IRC/Client.pm6
@@ -19,13 +19,15 @@ class IRC::Client:ver<1.002001> {
has @!plugs = [|@!plugins-essential, |@!plugins];
method run {
+ .irc-start-up: self for @!plugs.grep(*.^can: 'irc-start-up');
+
await IO::Socket::Async.connect( $!host, $!port ).then({
$!sock = .result;
$.ssay("NICK $!nick\n");
$.ssay("USER $!username $!userhost $!host :$!userreal\n");
$.ssay("JOIN $_\n") for @!channels;
- .register: self for @!plugs.grep(*.^can: 'register');
+ .irc-connected: self for @!plugs.grep(*.^can: 'irc-connected');
react {
whenever $!sock.Supply -> $str is copy {