simplify slice expansion

This commit is contained in:
Liam Stanley 2016-12-30 08:54:19 -05:00
parent 3d0a75e389
commit 0ac9bc4501

@ -78,7 +78,7 @@ func decodeCTCP(e *Event) *CTCPEvent {
return &CTCPEvent{ return &CTCPEvent{
Source: e.Source, Source: e.Source,
Command: text[0:s], Command: text[0:s],
Text: text[s+1 : len(text)], Text: text[s+1:],
Reply: e.Command == "NOTICE", Reply: e.Command == "NOTICE",
} }
} }