diff options
| author | citrons <citrons@mondecitronne.com> | 2025-06-02 09:19:23 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-06-02 09:19:23 -0500 |
| commit | cd33ad54372bd53842fd6e04dbb2859f9ab59f51 (patch) | |
| tree | 459410c9215a22df29f63de33ad7ec2b373db172 /server/channel | |
| parent | f14c0aa7a0ad19065d87424b3abc0fdabd9fe9bb (diff) | |
refactor join/leave messages`
Diffstat (limited to 'server/channel')
| -rw-r--r-- | server/channel/channel.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/channel/channel.go b/server/channel/channel.go index 078e377..449375b 100644 --- a/server/channel/channel.go +++ b/server/channel/channel.go @@ -123,7 +123,7 @@ func (c *Channel) Join(u *user.User) *proto.Fail { } c.members[u.Id()] = c.defaultMembership u.Channels[c.id] = true - c.Put(proto.Object{"join", "", map[string]string {"": u.Id()}}) + c.Put(proto.Object{"join", "", map[string]string {"f": u.Id()}}) return nil } @@ -133,7 +133,7 @@ func (c *Channel) Leave(u *user.User) *proto.Fail { } delete(c.members, u.Id()) delete(u.Channels, c.id) - c.Put(proto.Object{"leave", "", map[string]string {"": u.Id()}}) + c.Put(proto.Object{"leave", "", map[string]string {"f": u.Id()}}) return nil } |
