Browse Source

fixed incorrect code order, handle @ chars correctly

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

4
plugins/openalias.py

@ -104,11 +104,13 @@ class Plugin(BasePlugin):
return
if self.win.payto_e.is_multiline(): # only supports single line entries atm
return
url = str(self.win.payto_e.toPlainText())
url = url.replace('@', '.') # support email-style addresses, per the OA standard
if url == self.win.previous_payto_e:
return
self.win.previous_payto_e = url
url = url.replace('@', '.') # support email-style addresses, per the OA standard
if ('.' in url) and (not '<' in url) and (not ' ' in url):
if not OA_READY: # handle a failed DNSPython load

Loading…
Cancel
Save