From a037c25326bceabc471f679ab2203d99e248ab0e Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 20 Dec 2016 23:18:45 +0100 Subject: maxLen --- command.go | 2 -- href.go | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/command.go b/command.go index b098b1b..665d530 100644 --- a/command.go +++ b/command.go @@ -11,8 +11,6 @@ type Commander interface { irc.Handler } -const maxLen = 500 - var commands = make(map[string]Commander) func Register(cmd string, f Commander) { diff --git a/href.go b/href.go index e1a687b..918a2f2 100644 --- a/href.go +++ b/href.go @@ -13,6 +13,8 @@ import ( var errNotHTML = errors.New("not HTML content") +const maxLen = 500 + func title(n *html.Node) (s string) { if n.Type == html.ElementNode && n.Data == "title" { for c := n.FirstChild; c != nil; c = c.NextSibling { -- cgit v1.2.3