summaryrefslogtreecommitdiffstats
path: root/app/command_echo.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/command_echo.go')
-rw-r--r--app/command_echo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/command_echo.go b/app/command_echo.go
index 404736aa4..ecf0d8d19 100644
--- a/app/command_echo.go
+++ b/app/command_echo.go
@@ -53,7 +53,7 @@ func (me *EchoProvider) DoCommand(a *App, args *model.CommandArgs, message strin
delay = checkDelay
}
message = message[1:endMsg]
- } else if strings.Index(message, " ") > -1 {
+ } else if strings.Contains(message, " ") {
delayIdx := strings.LastIndex(message, " ")
delayStr := strings.Trim(message[delayIdx:], " ")