You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you remove an account with /account remove test and this account is also the account set with /autoconnect set test. Then when you save the configuration and restart profanity it will try to connect to the non existent account.
Expected Behavior
Removing an account should also remove said account from autoconnect.
Current Behavior
Removed accounts are left in the autoconnect setting.
Possible Solution
When removing an account also check if it's set as the autoconnect account and remove it from that setting as well.
Steps to Reproduce (for bugs)
/account add test
/autoconnect set test
/account remove test
/save
/quit
Start profanity
Environment
$ profanity -v
Profanity, version 0.14.0
Copyright (C) 2012 - 2019 James Booth <boothj5web@gmail.com>.
Copyright (C) 2019 - 2023 Michael Vetter <jubalh@iodoru.org>.
License GPLv3+: GNU GPL version 3 or later <https://www.gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Build information:
XMPP library: libstrophe
Desktop notification support: Enabled
OTR support: Enabled (libotr 4.1.1)
PGP support: Enabled (libgpgme 1.18.0)
OMEMO support: Enabled
C plugins: Enabled
Python plugins: Enabled (3.11.9)
GTK icons/clipboard: Enabled
GDK Pixbuf: Enabled
When a user added an account, set it as autoconnect and then removed
that account. It still was set as the autoconnect account.
```
/account add test
/autoconnect set test
/account remove test
/save
/quit
Start profanity
```
Fix#1976
If you remove an account with
/account remove test
and this account is also the account set with/autoconnect set test
. Then when you save the configuration and restart profanity it will try to connect to the non existent account.Expected Behavior
Removing an account should also remove said account from autoconnect.
Current Behavior
Removed accounts are left in the autoconnect setting.
Possible Solution
When removing an account also check if it's set as the autoconnect account and remove it from that setting as well.
Steps to Reproduce (for bugs)
/account add test
/autoconnect set test
/account remove test
/save
/quit
Environment
The text was updated successfully, but these errors were encountered: