aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Boege <taboege@gmail.com>2018-06-23 00:08:43 +0200
committerTobias Boege <taboege@gmail.com>2018-06-23 00:10:57 +0200
commit7181a98d18a733256f3a7678d4d2ce20ad12f5d8 (patch)
tree3b50d4abf00635dc8203593d2f671c6ed2b3554b
parent16230d8ee5a7275f3e7f87fa2ba0e8ed659acedd (diff)
downloadirc-client-7181a98d18a733256f3a7678d4d2ce20ad12f5d8.tar.gz
irc-client-7181a98d18a733256f3a7678d4d2ce20ad12f5d8.tar.bz2
IRC::Client.send: use correct server in loop
-rw-r--r--lib/IRC/Client.pm64
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IRC/Client.pm6 b/lib/IRC/Client.pm6
index 7dd6e8d..40353b3 100644
--- a/lib/IRC/Client.pm6
+++ b/lib/IRC/Client.pm6
@@ -130,12 +130,12 @@ method run {
method send (:$where!, :$text!, :$server, :$notice) {
for $server || |%!servers.keys.sort {
- if self!get-server($server).is-connected {
+ if self!get-server($_).is-connected {
self.send-cmd: $notice ?? 'NOTICE' !! 'PRIVMSG', $where, $text,
:server($_);
}
else {
- $!debug and debug-print( :out, :$server,
+ $!debug and debug-print( :out, :server($_),
'.send() called for an unconnected server. Skipping...'
);
}