return'Allow for payments to OpenAlias addresses.'
defis_available(self):
returnOA_READY
def__init__(self,gui,name):
BasePlugin.__init__(self,gui,name)
self._is_available=True
self._is_available=OA_READY
@hook
definit_qt(self,gui):
@ -45,12 +52,17 @@ class Plugin(BasePlugin):
returnFalsetocontinueexecutionofthesend
returnTruetostopexecutionofthesend
'''
ifself.win.payto_e.is_multiline():# only supports single line entries atm
returnFalse
url=str(self.win.payto_e.toPlainText())
ifnot'.'inurl:
returnFalse
else:
ifnotOA_READY:
QMessageBox.warning(self.win,_('Error'),'Could not load DNSPython libraries, please ensure they are available and/or Electrum has been built correctly',_('OK'))