diff --git a/lib/commands/get.pm b/lib/commands/get.pm index 172c6dd8ff9371a4b4eace5d9f73b46143965754..ea86cbb6b7d94804efd0227427251be22f27896f 100644 --- a/lib/commands/get.pm +++ b/lib/commands/get.pm @@ -85,7 +85,7 @@ sub exec { my $irc_msg = utils::print::print(\%content_h); # if in query - if ($chan !~ /^#/) { + if ($chan->[0] !~ /^#/) { $irc_msg .= ' [' . $chan_src->[0] . ']'; } else {