This commit is contained in:
Matthieu Grieger 2015-01-19 13:28:25 -08:00
parent 4d08287530
commit 7465922c43
2 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,9 @@
MumbleDJ Changelog
==================
### January 19, 2015 -- `v2.2.11`
* Fixed not being able to use the move command with channels with spaces in their name.
### January 14, 2015 -- `v2.2.9, v2.2.10`
* Set AudioEncoder Application to `gopus.Audio` instead of `gopus.Voice` for hopefully better sound quality.
* Added some commands to the !help string that were missing.

View file

@ -24,8 +24,8 @@ func parseCommand(user *gumble.User, username, command string) {
var com, argument string
sanitizedCommand := sanitize.HTML(command)
if strings.Contains(sanitizedCommand, " ") {
parsedCommand := strings.Split(sanitizedCommand, " ")
com, argument = parsedCommand[0], parsedCommand[1]
index := strings.Index(sanitizedCommand, " ")
com, argument = sanitizedCommand[0:index], sanitizedCommand[(index + 1):]
} else {
com = command
argument = ""