From a20711c2abab2694ee43bddea878538ceccaf988 Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Sat, 5 Oct 2013 13:39:53 -0400 Subject: [PATCH] Fix whitelist functionality --- src/class_receiveDataThread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class_receiveDataThread.py b/src/class_receiveDataThread.py index 59597711..b1a62261 100644 --- a/src/class_receiveDataThread.py +++ b/src/class_receiveDataThread.py @@ -1120,7 +1120,7 @@ class receiveDataThread(threading.Thread): else: # We're using a whitelist queryreturn = sqlQuery( '''SELECT label FROM whitelist where address=? and enabled='1' ''', - toAddress) + fromAddress) if queryreturn == []: print 'Message ignored because address not in whitelist.' blockMessage = True