diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2016-03-22 08:30:23 +0100 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2016-03-22 08:30:23 +0100 |
commit | c13badd5bd58f11cd9d50fa52b39a192b6e717be (patch) | |
tree | fc47dbe8c270e5bebb53903b2e273cde3fe18db0 /href.go | |
parent | b608c1a002c0bdcc5b31982b9823da50fb949de1 (diff) |
Less magic
Diffstat (limited to 'href.go')
-rw-r--r-- | href.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -77,8 +77,8 @@ func ExtractLinks(conn *irc.Conn, line *irc.Line) { log.Println(err) } if t != "" { - if len(t) > 500 { - t = t[:500] + "..." + if len(t) > maxLen { + t = t[:maxLen] + "..." } conn.Notice(line.Target(), "Title: "+t) } |