aboutsummaryrefslogtreecommitdiff
path: root/clients.go
diff options
context:
space:
mode:
Diffstat (limited to 'clients.go')
-rw-r--r--clients.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/clients.go b/clients.go
index 16dea78..1c3f8e0 100644
--- a/clients.go
+++ b/clients.go
@@ -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
}