aboutsummaryrefslogtreecommitdiff
path: root/lib/IRC/Client/Message.pm6
diff options
context:
space:
mode:
authorZoffix Znet <cpan@zoffix.com>2016-06-05 10:14:38 -0400
committerZoffix Znet <cpan@zoffix.com>2016-06-05 10:14:38 -0400
commit6f3f00300a122e33ca1050fdb42cccda39fe9ba4 (patch)
tree7c1c08ed4bfdb32cf0416ac3d78f4e8b6a33141a /lib/IRC/Client/Message.pm6
parent496d289d8b515ed57a1586c3a39826703c3923b2 (diff)
Z
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 1b38d23..e7478de 100644
--- a/lib/IRC/Client/Message.pm6
+++ b/lib/IRC/Client/Message.pm6
@@ -37,12 +37,12 @@ role Privmsg does M { has $.text; }
role Privmsg::Channel does Privmsg {
has $.channel;
method reply ($text, :$where) {
- $.irc.send-cmd: 'PRIVMSG', $where // $.channel, $text;
+ $.irc.send-cmd: 'PRIVMSG', $where // $.channel, $text, :$.server;
}
}
role Privmsg::Me does Privmsg {
method reply ($text, :$where) {
$where //= $.nick;
- $.irc.send-cmd: 'PRIVMSG', $where, $text;
+ $.irc.send-cmd: 'PRIVMSG', $where, $text, :$.server;
}
}