aboutsummaryrefslogtreecommitdiff
path: root/lib/IRC/Client/Message.pm6
diff options
context:
space:
mode:
Diffstat (limited to 'lib/IRC/Client/Message.pm6')
-rw-r--r--lib/IRC/Client/Message.pm64
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IRC/Client/Message.pm6 b/lib/IRC/Client/Message.pm6
index 9559fd1..89295e3 100644
--- a/lib/IRC/Client/Message.pm6
+++ b/lib/IRC/Client/Message.pm6
@@ -7,7 +7,7 @@ role IRC::Client::Message {
has Str:D $.host is required;
has Str:D $.usermask is required;
has Str:D $.command is required;
- has Str:D $.server is required;
+ has $.server is required;
has $.args is required;
method Str { ":$!usermask $!command $!args[]" }
@@ -34,7 +34,7 @@ role Ping does M {
role Privmsg does M {
has $.text is rw;
has Bool $.replied is rw = False;
- method Str { $.text }
+ method ACCEPTS ($what) { $.text ~~ $what }
}
role Privmsg::Channel does Privmsg {
has $.channel;