diff options
author | Alexey Yerin <yyp@disroot.org> | 2021-05-24 22:57:19 +0300 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-05-25 10:57:03 +0200 |
commit | f30294b4ceb46871ce8b672b4caec42ea06c7253 (patch) | |
tree | 55c0494ca7031bcb7e519e64e94435fdd4345f2e /commands.go | |
parent | Disallow sending messages to home (diff) |
commands: use Home constant instead of "home"
Diffstat (limited to 'commands.go')
-rw-r--r-- | commands.go | 2 |
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") } |