From 942c83fb5dea064e542547ab1e5b75ef744e737f Mon Sep 17 00:00:00 2001
From: Alexandre Morignot <erdnaxeli@cervoi.se>
Date: Sat, 16 May 2015 23:31:05 +0200
Subject: [PATCH] !stats must not consider queries

---
 lib/utils/db/stats.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/utils/db/stats.pm b/lib/utils/db/stats.pm
index e4b6681..59e9cad 100644
--- a/lib/utils/db/stats.pm
+++ b/lib/utils/db/stats.pm
@@ -31,7 +31,7 @@ around 'BUILDARGS' => sub {
         select
         date, chan, sender_irc
         from playbot_chan
-        where content = ?
+        where content = ? and chan like \'#%\'
         order by date
         ');
 
-- 
GitLab