/back, /away: Change no-op to return err v1.11-rc4
authorAkshay Shekher <voldyman666@gmail.com>
Wed, 13 Oct 2021 15:00:11 +0000 (08:00 -0700)
committerGitHub <noreply@github.com>
Wed, 13 Oct 2021 15:00:11 +0000 (11:00 -0400)
commitd25630020d29306cd509c74bc3ede1d076124841
tree8dc11174a36033f177094971f76fefb645e6b116
parent0eebb64c1d651a536e2488b5e7be9b8511e6e43c
/back, /away: Change no-op to return err

Fixes #402

When the user is not set as away, using the
`/back` or `/away` command should return error.
The previous behaviour was inconsistent,
`/away` sent a message and `/back` ignored it.
New behaviour is error for both cases.

Co-authored-by: Akshay <akshay.shekher@gmail.com>
chat/command.go
chat/command_test.go