commit f30294b

Alexey Yerin  ·  2021-05-24 19:57:19 +0000 UTC
parent b37d05f
commands: use Home constant instead of "home"
1 files changed,  +1, -1
+1, -1
1@@ -125,7 +125,7 @@ func init() {
2 func noCommand(app *App, buffer, content string) error {
3 	// You can't send messages to home buffer, and it might get
4 	// delivered to a user "home" without a bouncer, which will be bad.
5-	if buffer == "home" {
6+	if buffer == Home {
7 		return fmt.Errorf("Can't send message to home")
8 	}
9