Convert bytes to human readable format
(self, bytes_val: int)
| 1560 | 'dst_ips': sorted(record.dst_ips)[:10], |
| 1561 | 'dst_ports': sorted(record.dst_ports), |
| 1562 | }, |
| 1563 | ) |
| 1564 | |
| 1565 | def _on_irc_event(self, session, message) -> None: |
| 1566 | """Callback: a notable IRC event was parsed off the wire.""" |
| 1567 | cmd = message.command |
| 1568 | # The first NICK or JOIN on a session is enough to raise the flag — |
| 1569 | # IRC on the wire in 2026 is almost always worth investigating. |
| 1570 | if cmd == 'JOIN': |
| 1571 | channels = ', '.join(sorted(session.channels)[:5]) |