From d7ad3ff1101b493a1386306d402299cd2e1a88b0 Mon Sep 17 00:00:00 2001
From: Alexandre Morignot <erdnaxeli@cervoi.se>
Date: Thu, 20 Aug 2015 23:45:50 +0200
Subject: [PATCH] we do not need -jesuisunspammeur to search by id

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

diff --git a/lib/commands/get.pm b/lib/commands/get.pm
index 9bd2fe0..e83a915 100644
--- a/lib/commands/get.pm
+++ b/lib/commands/get.pm
@@ -23,6 +23,7 @@ sub exec {
 
     if (scalar @{$query->words} == 1
             and scalar @{$query->tags} == 0
+            and $query->id == -1
             and not $query->is_single_word)
     {
         $irc->yield(privmsg => $chan => "pour faire une recherche avec un seul mot, ajouter l'option -jesuisunspammeur (sinon on peut faire une recherche en query aussi)");
-- 
GitLab