mirror of https://github.com/fluffle/goirc
Fix loop condition in function splitCommand
This commit is contained in:
parent
b92d052130
commit
2107d5a041
|
@ -95,7 +95,7 @@ func splitCommand(cmdPrefix string, args []string) []string {
|
||||||
currCmd := cmdPrefix + args[i]
|
currCmd := cmdPrefix + args[i]
|
||||||
i++
|
i++
|
||||||
|
|
||||||
for i < len(args) && len(currCmd) < defaultSplit {
|
for i < len(args) && len(currCmd)+len(args[i])+1 < defaultSplit {
|
||||||
currCmd += " " + args[i]
|
currCmd += " " + args[i]
|
||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue