summaryrefslogtreecommitdiff
path: root/href.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-22 08:30:23 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-03-22 08:30:23 +0100
commitc13badd5bd58f11cd9d50fa52b39a192b6e717be (patch)
treefc47dbe8c270e5bebb53903b2e273cde3fe18db0 /href.go
parentb608c1a002c0bdcc5b31982b9823da50fb949de1 (diff)
Less magic
Diffstat (limited to 'href.go')
-rw-r--r--href.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/href.go b/href.go
index 0e855a7..ddafd45 100644
--- a/href.go
+++ b/href.go
@@ -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)
}