commit 0ac0766956fcdadb49a52eb413b103b0c8cb7492
parent e2764bafae6e7e0c7ba929a9108392b29c3c72a2
Author: Fox <LightFox@home.com>
Date: Wed, 19 Feb 2025 13:04:43 -0800
changed the stuff n0tr1v wanted me to change spelling and renaming of fucntion
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/pkg/web/handlers/interceptors/command/command.go b/pkg/web/handlers/interceptors/command/command.go
@@ -125,15 +125,15 @@ func (c *Command) zeroProcMsgRoom(rawMsg, roomKey string, roomID database.RoomID
// Have the "zero user" send a "processed message" PM to a user in a specific room.
func (c *Command) zeroProcMsgRoomToUser(rawMsg, roomKey string, roomID database.RoomID, toUser *database.User) {
procMsg, _, _ := dutils.ProcessRawMessage(c.DB, rawMsg, roomKey, c.AuthUser.ID, roomID, nil, c.AuthUser.IsModerator(), true, false)
- c.ZeroRawMsg(toUser, rawMsg, procMsg)
+ c.zeroRawMsg(toUser, rawMsg, procMsg)
}
-// ZeroMsg have the "zero usser" send an unprocessed private message to the authUser
+// ZeroMsg have the "zero user" send an unprocessed private message to the authUser
func (c *Command) ZeroMsg(msg string) {
- c.ZeroRawMsg(c.AuthUser, msg, msg)
+ c.zeroRawMsg(c.AuthUser, msg, msg)
}
func (c *Command) ZeroMsgToUser(AuthUser *database.User, msg string) {
- c.ZeroRawMsg(AuthUser, msg, msg)
+ c.zeroRawMsg(AuthUser, msg, msg)
}
func (c *Command) ZeroSysMsgTo(user2 *database.User, msg string) {
@@ -146,10 +146,10 @@ func (c *Command) ZeroSysMsgToSkipNotify(user2 *database.User, msg string) {
// ZeroPublicMsg have the "zero usser" send an unprocessed message in the current room
func (c *Command) ZeroPublicMsg(raw, msg string) {
- c.ZeroRawMsg(nil, raw, msg)
+ c.zeroRawMsg(nil, raw, msg)
}
-func (c *Command) ZeroRawMsg(user2 *database.User, raw, msg string) {
+func (c *Command) zeroRawMsg(user2 *database.User, raw, msg string) {
zeroUser := c.GetZeroUser()
c.rawMsg(zeroUser, user2, raw, msg)
}