Revert "v2.4.1"

This reverts commit 3bb47500d1.
This commit is contained in:
Jeroen Oudshoorn
2023-09-18 01:05:22 +02:00
parent 749e2a7b30
commit 421728e79d
3 changed files with 73 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def toggle_plugin(name, enable=True):
global loaded, database
if pwnagotchi.config:
if name not in pwnagotchi.config['main']['plugins']:
if not name in pwnagotchi.config['main']['plugins']:
pwnagotchi.config['main']['plugins'][name] = dict()
pwnagotchi.config['main']['plugins'][name]['enabled'] = enable
save_config(pwnagotchi.config, '/etc/pwnagotchi/config.toml')