Bug fixes #522
|
@ -3234,6 +3234,9 @@ def run():
|
||||||
locale_lang = locale_countrycode[0:2]
|
locale_lang = locale_countrycode[0:2]
|
||||||
user_countrycode = str(shared.config.get('bitmessagesettings', 'userlocale'))
|
user_countrycode = str(shared.config.get('bitmessagesettings', 'userlocale'))
|
||||||
user_lang = user_countrycode[0:2]
|
user_lang = user_countrycode[0:2]
|
||||||
|
try:
|
||||||
|
translation_path = os.path.join(sys._MEIPASS, "translations/bitmessage_")
|
||||||
|
except Exception, e:
|
||||||
translation_path = "translations/bitmessage_"
|
translation_path = "translations/bitmessage_"
|
||||||
|
|
||||||
if shared.config.get('bitmessagesettings', 'userlocale') == 'system':
|
if shared.config.get('bitmessagesettings', 'userlocale') == 'system':
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in New Issue
Block a user