aboutsummaryrefslogtreecommitdiff
path: root/lib/IRC/Client/Message.pm6
diff options
context:
space:
mode:
authorZoffix Znet <cpan@zoffix.com>2016-07-26 08:53:29 -0400
committerZoffix Znet <cpan@zoffix.com>2016-07-26 08:53:29 -0400
commit226a5ccd074b8840ca83d50376f8b26b9d9ffd97 (patch)
tree7521357332940c246a3076ca27ea7625c02f8147 /lib/IRC/Client/Message.pm6
parentea2c4707a526cc9746ed929e7a38d932721db624 (diff)
More stuff
Diffstat (limited to 'lib/IRC/Client/Message.pm6')
-rw-r--r--lib/IRC/Client/Message.pm68
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/IRC/Client/Message.pm6 b/lib/IRC/Client/Message.pm6
index 84eba2c..9559fd1 100644
--- a/lib/IRC/Client/Message.pm6
+++ b/lib/IRC/Client/Message.pm6
@@ -39,8 +39,8 @@ role Privmsg does M {
role Privmsg::Channel does Privmsg {
has $.channel;
method reply ($text, :$where) {
- $.irc.send-cmd: 'PRIVMSG', $where // $.channel, "$.nick, $text",
- :$.server;
+ $.irc.send-cmd: 'PRIVMSG', $where // $.channel, $text,
+ :$.server, :prefix("$.nick, ");
}
}
role Privmsg::Me does Privmsg {
@@ -57,8 +57,8 @@ role Notice does M {
role Notice::Channel does Notice {
has $.channel;
method reply ($text, :$where) {
- $.irc.send-cmd: 'NOTICE', $where // $.channel, "$.nick, $text",
- :$.server;
+ $.irc.send-cmd: 'NOTICE', $where // $.channel, $text,
+ :$.server, :prefix("$.nick, ");
$.replied = True;
}
}