mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 09:45:18 +00:00
use the correct Electrum alias syntax
This commit is contained in:
parent
e96fe36e62
commit
540adeb22c
1 changed files with 4 additions and 4 deletions
|
@ -113,12 +113,12 @@ class Plugin(BasePlugin):
|
||||||
|
|
||||||
url = url.replace('@', '.') # support email-style addresses, per the OA standard
|
url = url.replace('@', '.') # support email-style addresses, per the OA standard
|
||||||
|
|
||||||
if not '.' in url:
|
if ('.' in url) and (not '<' in url) and (not ' ' in url):
|
||||||
return False
|
|
||||||
else:
|
|
||||||
if not OA_READY: # handle a failed DNSPython load
|
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'))
|
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
|
return False
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
data = self.resolve(url)
|
data = self.resolve(url)
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ class Plugin(BasePlugin):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
(address, name) = data
|
(address, name) = data
|
||||||
self.win.payto_e.setText(address)
|
self.win.payto_e.setText(url + ' <' + address + '>')
|
||||||
|
|
||||||
if not self.validate_dnssec(url):
|
if not self.validate_dnssec(url):
|
||||||
msgBox = QMessageBox()
|
msgBox = QMessageBox()
|
||||||
|
|
Loading…
Add table
Reference in a new issue