Change AutoWho regex to match partial hashes

This commit is contained in:
zenith 2026-05-14 12:43:48 -04:00
parent 6e0d8b9f4c
commit 1c117507c4
2 changed files with 3 additions and 3 deletions

View file

@ -137,7 +137,7 @@ def _body_markup(body, body_attr="body_text", own_nick=None):
return out, has_links
def _short_hash(b, n=10):
def _short_hash(b, n=12):
if isinstance(b, (bytes, bytearray)):
return bytes(b).hex()[:n]
return "?"