aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/IRC/Client.pm64
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IRC/Client.pm6 b/lib/IRC/Client.pm6
index bd10196..91690e7 100644
--- a/lib/IRC/Client.pm6
+++ b/lib/IRC/Client.pm6
@@ -188,9 +188,9 @@ method !handle-event ($e) {
my $res = ."$event"($e);
next if $res ~~ IRC_FLAG_NEXT;
if $res ~~ Promise {
- $res.then: { $e.reply: $^r unless $^r ~~ Nil or $e.replied; }
+ $res.then: { $e.?reply: $^r unless $^r ~~ Nil or $e.?replied; }
} else {
- $e.reply: $res unless $res ~~ Nil or $e.replied;
+ $e.?reply: $res unless $res ~~ Nil or $e.?replied;
}
last EVENT;