From 8c77ec6433c4a841c3fa7333a343382ea82e226f Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Wed, 14 Dec 2005 12:41:32 +0000
Subject: [PATCH] SLELCT log_line_id instead of message when looking if log
 line is already in DB, so it's faster

---
 src/common/logger.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/logger.py b/src/common/logger.py
index e2cd191803..7290d54557 100644
--- a/src/common/logger.py
+++ b/src/common/logger.py
@@ -260,7 +260,7 @@ def write(self, kind, jid, message = None, show = None, tim = None, subject = No
 			contact_name_col = nick
 			if check_unique: # check for same time, same msg, same jid, same kind
 				self.cur.execute('''
-					SELECT message FROM logs
+					SELECT log_line_id FROM logs
 					WHERE time = ? AND message = ? AND jid_id = ?
 					AND kind = ?
 					''', (time_col, message_col, jid_id, constants.KIND_GC_MSG))
-- 
GitLab