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 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;
}
}