diff --git a/PlayBot/utils/id.pm b/PlayBot/utils/id.pm
index 465848e085156b651520639d0d23383887360ff5..429d124293071a4da84ba3a03a7fc24bab231d64 100644
--- a/PlayBot/utils/id.pm
+++ b/PlayBot/utils/id.pm
@@ -84,32 +84,14 @@ sub _test_if_exists {
 
     my $sth;
 
-    # in query, we don't check chan
-    # this means that a user can indicate any id in query
-    if ($chan =~ /^#/) {
-         $sth = $dbh->prepare('
-            SELECT content
-            FROM playbot_chan
-            WHERE content = ?
-            AND chan = ?
-            LIMIT 1
-        ');
-
-        $sth->execute($index, $chan)
-            or $log->error("Couldn't finish transaction: " . $dbh->errstr);
-    } else {
-        $sth = $dbh->prepare('
-            SELECT content
-            FROM playbot_chan
-            WHERE content = ?
-            LIMIT 1
-        ');
-
-        $sth->execute($index)
-            or $log->error("Couldn't finish transaction: " . $dbh->errstr);
-    }
+    $sth = $dbh->prepare('
+        SELECT content
+        FROM playbot_chan
+        WHERE content = ?
+        LIMIT 1
+    ');
 
-    $sth->execute($index, $chan)
+    $sth->execute($index)
         or $log->error("Couldn't finish transaction: " . $dbh->errstr);
 
     my $content = $sth->fetch;