summaryrefslogtreecommitdiff
path: root/commands.go
diff options
context:
space:
mode:
authorAlexey Yerin <yyp@disroot.org>2021-05-24 22:57:19 +0300
committerHubert Hirtz <hubert@hirtz.pm>2021-05-25 10:57:03 +0200
commitf30294b4ceb46871ce8b672b4caec42ea06c7253 (patch)
tree55c0494ca7031bcb7e519e64e94435fdd4345f2e /commands.go
parentDisallow sending messages to home (diff)
commands: use Home constant instead of "home"
Diffstat (limited to 'commands.go')
-rw-r--r--commands.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands.go b/commands.go
index 6e68d27..da312ca 100644
--- a/commands.go
+++ b/commands.go
@@ -125,7 +125,7 @@ func init() {
func noCommand(app *App, buffer, content string) error {
// You can't send messages to home buffer, and it might get
// delivered to a user "home" without a bouncer, which will be bad.
- if buffer == "home" {
+ if buffer == Home {
return fmt.Errorf("Can't send message to home")
}