From 540adeb22c503dcc69ec2afb53707f98d0bbeb57 Mon Sep 17 00:00:00 2001 From: Riccardo Spagni Date: Sat, 24 Jan 2015 19:50:28 +0200 Subject: [PATCH] use the correct Electrum alias syntax --- plugins/openalias.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/openalias.py b/plugins/openalias.py index 7a8e1a8fc..5635f35e2 100644 --- a/plugins/openalias.py +++ b/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()