mirror of
https://github.com/fluffle/goirc
synced 2025-06-07 15:23:20 +00:00
Fix loop condition in function splitCommand
This commit is contained in:
parent
b92d052130
commit
2107d5a041
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue