From 0ac9bc450129f73dc428e74fbc6445d2a91d48e1 Mon Sep 17 00:00:00 2001 From: Liam Stanley Date: Fri, 30 Dec 2016 08:54:19 -0500 Subject: [PATCH] simplify slice expansion --- ctcp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctcp.go b/ctcp.go index 610e75d..383a797 100644 --- a/ctcp.go +++ b/ctcp.go @@ -78,7 +78,7 @@ func decodeCTCP(e *Event) *CTCPEvent { return &CTCPEvent{ Source: e.Source, Command: text[0:s], - Text: text[s+1 : len(text)], + Text: text[s+1:], Reply: e.Command == "NOTICE", } }