Fix whitelist functionality
This commit is contained in:
parent
f6b9c234f7
commit
a20711c2ab
|
@ -1120,7 +1120,7 @@ class receiveDataThread(threading.Thread):
|
||||||
else: # We're using a whitelist
|
else: # We're using a whitelist
|
||||||
queryreturn = sqlQuery(
|
queryreturn = sqlQuery(
|
||||||
'''SELECT label FROM whitelist where address=? and enabled='1' ''',
|
'''SELECT label FROM whitelist where address=? and enabled='1' ''',
|
||||||
toAddress)
|
fromAddress)
|
||||||
if queryreturn == []:
|
if queryreturn == []:
|
||||||
print 'Message ignored because address not in whitelist.'
|
print 'Message ignored because address not in whitelist.'
|
||||||
blockMessage = True
|
blockMessage = True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user