~taiite/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH senpai] commands: use Home constant instead of "home"

Details
Message ID
<20210524195719.7070-1-yyp@disroot.org>
DKIM signature
pass
Download raw message
Patch: +1 -1
---
 commands.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands.go b/commands.go
index 790b900..009bc81 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")
	}

-- 
2.31.1
Details
Message ID
<20210525105810.5e38b9e9@vroom.localdomain>
In-Reply-To
<20210524195719.7070-1-yyp@disroot.org> (view parent)
DKIM signature
pass
Download raw message
Thanks, pushed!

To git.sr.ht:~taiite/senpai
   b37d05f..f30294b  master -> master
Reply to thread Export thread (mbox)