Added text overflow checking for over 999 associations
This commit is contained in:
parent
ee6c06f306
commit
7fa30c2868
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user