aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZoffix Znet <cpan@zoffix.com>2015-12-21 09:43:30 -0500
committerZoffix Znet <cpan@zoffix.com>2015-12-21 09:43:30 -0500
commitc3ac49e463440b318fa70cfddaed3f91c6797556 (patch)
tree9115c232b37c15f19580cfc461578b519459d9fb /lib
parentb237e80bf44419a64d8ba43bf44e428563f2ac6e (diff)
Add irc-start-up and irc-connected methods. Toss irc-register
Diffstat (limited to 'lib')
-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 {