From 9a72a8868bd4c282425db553ef7c7510e60c41d2 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Wed, 23 Oct 2019 20:02:42 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- pwnagotchi/automata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/automata.py b/pwnagotchi/automata.py index 2d35392..556af63 100644 --- a/pwnagotchi/automata.py +++ b/pwnagotchi/automata.py @@ -109,7 +109,7 @@ class Automata(object): # after X times being active, the status is set to happy / excited elif self._epoch.active_for >= self._config['personality']['excited_num_epochs']: self.set_excited() - elif self._has_support_network_for(1.0): + elif self._epoch.active_for >= 5 and self._has_support_network_for(1.0): self.set_grateful() plugins.on('epoch', self, self._epoch.epoch - 1, self._epoch.data())