summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 021f075..9381b5a 100644
--- a/main.go
+++ b/main.go
@@ -16,7 +16,7 @@ var (
Build string
)
-const maxLen = 500
+const maxLen = 450
type Notify struct {
conn *irc.Conn
@@ -30,7 +30,7 @@ func NewNotify(conn *irc.Conn, target string) *Notify {
func limit(n int, s string) string {
r := []rune(s)
if sz := len(r); sz > n {
- r = append(r[:n], []rune("...")...)
+ r = append(r[:n-3], []rune("...")...)
}
return string(r)
}