simplify slice expansion
This commit is contained in:
parent
3d0a75e389
commit
0ac9bc4501
2
ctcp.go
2
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",
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user