From 938d734988bd99db66968698360a2a1a08f18025 Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Thu, 31 Dec 2015 13:23:17 -0500 Subject: Fix freeze up on broken messages --- lib/IRC/Grammar/Actions.pm6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/IRC/Grammar/Actions.pm6') diff --git a/lib/IRC/Grammar/Actions.pm6 b/lib/IRC/Grammar/Actions.pm6 index 469f8f8..e7f5292 100644 --- a/lib/IRC/Grammar/Actions.pm6 +++ b/lib/IRC/Grammar/Actions.pm6 @@ -10,7 +10,8 @@ method message ($/) { %args = ~$pref if $pref.defined; my $p = $/; - loop { + + for ^100 { # bail out after 100 iterations; we're stuck if ( $p.defined ) { %args.append: ~$p; } -- cgit v1.1