diff options
author | Runxi Yu <me@runxiyu.org> | 2024-12-08 21:34:30 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-12-08 21:34:30 +0800 |
commit | f86032e68213087b8f087245851b915b5f6acfa6 (patch) | |
tree | 33e617793050e7ed25a914a70da43e33f5ba4650 /clients.go | |
parent | UID -> CID (diff) | |
download | meseircd-f86032e68213087b8f087245851b915b5f6acfa6.tar.gz meseircd-f86032e68213087b8f087245851b915b5f6acfa6.tar.zst meseircd-f86032e68213087b8f087245851b915b5f6acfa6.zip |
Server & Client should only have pointer receivers
Diffstat (limited to 'clients.go')
-rw-r--r-- | clients.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -17,7 +17,7 @@ type Client struct { Host string Caps map[string]struct{} Extra map[string]any - Server Server + Server *Server State ClientState } @@ -40,12 +40,12 @@ func (client *Client) SendRaw(s string) error { return nil } -func (client Client) ClientSource() string { +func (client *Client) ClientSource() string { // TODO: Edge cases where these aren't available return client.Nick + "!" + client.Ident + "@" + client.Host } -func (client Client) ServerSource() string { +func (client *Client) ServerSource() string { return client.CID } |