Added text overflow checking for over 999 associations
This commit is contained in:
1 parent
ee6c06f306
commit
7fa30c2868
1 file changed
+4
-1
+4
-1
@@ -161,7 +161,10 @@ class Voice:
|
||||
|
||||
def on_last_session_data(self, last_session):
|
||||
status = self._('Kicked {num} stations\n').format(num=last_session.deauthed)
|
||||
status += self._('Made {num} new friends\n').format(num=last_session.associated)
|
||||
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:
|
||||
status += self._('Met 1 peer')
|
||||
|
||||
Reference in new issue
Block a user