aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZoffix Znet <cpan@zoffix.com>2017-10-20 20:15:02 -0400
committerZoffix Znet <cpan@zoffix.com>2017-10-20 20:15:02 -0400
commita65947a81a2047bb05dad59d5fd3ccee09236605 (patch)
tree2189d35c56446ef10d7a7917c7649bfb89870ff1 /lib
parent36e9e4a3013ca6f6a51f240d03198754944928bf (diff)
Fix grammar bug
Fixes #51 Fixes #53
Diffstat (limited to 'lib')
-rw-r--r--lib/IRC/Client/Grammar.pm62
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IRC/Client/Grammar.pm6 b/lib/IRC/Client/Grammar.pm6
index a80b79f..4037d43 100644
--- a/lib/IRC/Client/Grammar.pm6
+++ b/lib/IRC/Client/Grammar.pm6
@@ -3,7 +3,7 @@ token TOP { <message>+ <left-overs> }
token left-overs { \N* }
token SPACE { ' '+ }
token message { [':' <prefix> <SPACE> ]? <command> <params> \n }
- token prefix {
+ regex prefix {
[ <servername> || <nick> ['!' <user>]? ['@' <host>]? ]
<before <SPACE>>
}