commit 41554ee65781292c6d9ec4db20dd0151650f91d0
parent c374ba1204adab59601b3ccfb35e5e0f69b639a9
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Wed, 20 Dec 2023 00:55:46 -0500
add wizz confirmation
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/pkg/web/handlers/interceptors/slashInterceptor.go b/pkg/web/handlers/interceptors/slashInterceptor.go
@@ -1806,6 +1806,7 @@ func handleWizzCmd(c *command.Command) (handled bool) {
}
database.MsgPubSub.Pub("wizz_"+wizzedUser.Username.String(), database.ChatMessageType{Typ: database.Wizz})
c.ZeroSysMsgTo(wizzedUser, "wizzed by "+c.AuthUser.Username.String())
+ c.ZeroSysMsgTo(c.AuthUser, "you wizzed "+wizzedUser.Username.String())
c.Err = command.ErrRedirect
return true
}