diff options
author | Zoffix Znet <cpan@zoffix.com> | 2017-10-20 20:15:02 -0400 |
---|---|---|
committer | Zoffix Znet <cpan@zoffix.com> | 2017-10-20 20:15:02 -0400 |
commit | a65947a81a2047bb05dad59d5fd3ccee09236605 (patch) | |
tree | 2189d35c56446ef10d7a7917c7649bfb89870ff1 /lib/IRC/Client/Grammar.pm6 | |
parent | 36e9e4a3013ca6f6a51f240d03198754944928bf (diff) |
Fix grammar bug
Fixes #51 Fixes #53
Diffstat (limited to 'lib/IRC/Client/Grammar.pm6')
-rw-r--r-- | lib/IRC/Client/Grammar.pm6 | 2 |
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>> } |