From 4cc995e4acaaa29991cb8154308b5e38f3f3584c Mon Sep 17 00:00:00 2001
From: Alexandre Morignot <erdnaxeli@cervoi.se>
Date: Wed, 13 May 2015 20:51:56 +0200
Subject: [PATCH] Fixes #15: classic shit

---
 lib/commands/get.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/commands/get.pm b/lib/commands/get.pm
index 172c6dd..ea86cbb 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 {
-- 
GitLab