1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-06-01 18:31:08 +00:00

Use goroutines for Error/Info calls

This commit is contained in:
mntn 2022-01-01 20:25:26 -05:00
parent 774554ac22
commit f13018bded

View File

@ -22,12 +22,12 @@ func CustomCommand(num int, url string) {
if len(cmd) > 0 {
msg, err := command.RunCommand(cmd, url)
if err != nil {
Error("Command Error", err.Error())
go Error("Command Error", err.Error())
return
}
Info(msg)
go Info(msg)
} else {
Error("Command Error", "Command "+strconv.Itoa(num)+" not defined")
go Error("Command Error", "Command "+strconv.Itoa(num)+" not defined")
return
}