mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Merge pull request #707 from AliceGrey/master
Added text overflow checking for over 999 associations
This commit is contained in:
@ -161,6 +161,9 @@ class Voice:
|
||||
|
||||
def on_last_session_data(self, last_session):
|
||||
status = self._('Kicked {num} stations\n').format(num=last_session.deauthed)
|
||||
if last_session.associated > 999:
|
||||
status += self._('Made >999 new friends\n')
|
||||
else:
|
||||
status += self._('Made {num} new friends\n').format(num=last_session.associated)
|
||||
status += self._('Got {num} handshakes\n').format(num=last_session.handshakes)
|
||||
if last_session.peers == 1:
|
||||
|
Reference in New Issue
Block a user