One thing I notice is that after setting the server back to
riseup.net, you still have the additional server property, whereas when you first successfully connected this property was not set (it defaults to the domainpart of your JID). There should be a command:
/account clear [account] server
However, I notice clear does not accept server as an argument, which I will fix:
https://github.com/boothj5/profanity/issues/440Until this is fixed, you can remove manually in the accounts file:
http://www.profanity.im/files.htmlThere will be a section for your account, with a server property, which you can just remove. I'm not sure if this would actually fix your problem but the settings will at least be consistent with when it worked the first time.
As for supporting TOR, I'm not very familiar with it, although I believe the .onion domain is not a true DNS, and profanity does not know to connect to the TOR network to resolve these addresses. So I believe this is not currently possible, unless there are existing proxy solutions of some kind.
If you still cannot connect after removing the server property, the debug logs might be useful (removing anything sensitive):
http://www.profanity.im/issues.html#proflogs