Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Peter 2013-10-10 17:13:43 +04:00
commit 21c012b8d6
3 changed files with 6 additions and 3 deletions

View File

@ -643,7 +643,7 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
raise APIError(0, 'I need parameters!')
if len(params) == 1:
address, = params
label == ''
label = ''
if len(params) == 2:
address, label = params
label = self._decode(label, "base64")

View File

@ -3284,6 +3284,9 @@ def run():
locale_lang = locale_countrycode[0:2]
user_countrycode = str(shared.config.get('bitmessagesettings', 'userlocale'))
user_lang = user_countrycode[0:2]
try:
translation_path = os.path.join(sys._MEIPASS, "translations/bitmessage_")
except Exception, e:
translation_path = "translations/bitmessage_"
if shared.config.get('bitmessagesettings', 'userlocale') == 'system':

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