dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit f6243b3e06114d3184ba61d36aa237cbfc40527a
parent 07faaddbdae57cc784ebec7b4d54523635a70db1
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Tue, 18 Feb 2025 16:03:23 -0800

cleanup & fix typo

Diffstat:
Mpkg/web/handlers/interceptors/command/command.go | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/pkg/web/handlers/interceptors/command/command.go b/pkg/web/handlers/interceptors/command/command.go @@ -141,19 +141,17 @@ func (c *Command) ZeroSysMsgToSkipNotify(user2 *database.User, msg string) { c.zeroSysRawMsg(user2, msg, msg, true) } -// ZeroPublicMsg have the "zero usser" send an unprocessed message in the current room +// ZeroPublicMsg have the "zero user" send an unprocessed message in the current room func (c *Command) ZeroPublicMsg(raw, msg string) { c.zeroRawMsg(nil, raw, msg) } func (c *Command) zeroRawMsg(user2 *database.User, raw, msg string) { - zeroUser := c.GetZeroUser() - c.rawMsg(zeroUser, user2, raw, msg) + c.rawMsg(c.GetZeroUser(), user2, raw, msg) } func (c *Command) zeroSysRawMsg(user2 *database.User, raw, msg string, skipNotify bool) { - zeroUser := c.GetZeroUser() - c.rawSysMsg(zeroUser, user2, raw, msg, skipNotify) + c.rawSysMsg(c.GetZeroUser(), user2, raw, msg, skipNotify) } func (c *Command) rawMsg(user1 database.User, user2 *database.User, raw, msg string) {