Browse Source

use the correct Electrum alias syntax

283
Riccardo Spagni 10 years ago
parent
commit
540adeb22c
No known key found for this signature in database GPG Key ID: 55432DF31CCD4FCD
  1. 8
      plugins/openalias.py

8
plugins/openalias.py

@ -113,12 +113,12 @@ class Plugin(BasePlugin):
url = url.replace('@', '.') # support email-style addresses, per the OA standard
if not '.' in url:
return False
else:
if ('.' in url) and (not '<' in url) and (not ' ' in url):
if not OA_READY: # handle a failed DNSPython load
QMessageBox.warning(self.win, _('Error'), 'Could not load DNSPython libraries, please ensure they are available and/or Electrum has been built correctly', _('OK'))
return False
else:
return False
data = self.resolve(url)
@ -126,7 +126,7 @@ class Plugin(BasePlugin):
return True
(address, name) = data
self.win.payto_e.setText(address)
self.win.payto_e.setText(url + ' <' + address + '>')
if not self.validate_dnssec(url):
msgBox = QMessageBox()

Loading…
Cancel
Save