Fix whitelist functionality

This commit is contained in:
Jonathan Warren 2013-10-05 13:39:53 -04:00
parent f6b9c234f7
commit a20711c2ab

View File

@ -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