Commit Diff
- Commit:
0c3e95627a6f16e7468e7ec0a01633355122eb89
- From:
- Omar Polo <op@omarpolo.com>
- Date:
- Sat Jan 8 15:47:06 2022 UTC
- Message:
- add a safety net: picks up only the first 50 characters of the HTTP title
--- main.go +++ main.go @@ -144,6 +144,10 @@ func pagetitle(conn *irc.Conn, line *irc.Line) { continue } + title := stringifyNode(n) + if len(title) > 50 { + title = title[:50] + } conn.Privmsg(channel, stringifyNode(n)) } }