aboutsummaryrefslogtreecommitdiff
path: root/cmd_cap.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-12-12 06:44:47 +0800
committerRunxi Yu <me@runxiyu.org>2024-12-12 06:44:47 +0800
commitebffb995c6581724b0b6760bf0c68f0f9d0c4160 (patch)
treeaa9f232f988130a5d8dda9fc1fbd13cf8fc187a2 /cmd_cap.go
parentCAP LS: Take version as integer (diff)
downloadmeseircd-ebffb995c6581724b0b6760bf0c68f0f9d0c4160.tar.gz
meseircd-ebffb995c6581724b0b6760bf0c68f0f9d0c4160.tar.zst
meseircd-ebffb995c6581724b0b6760bf0c68f0f9d0c4160.zip
Use uint32 for SIDs, uint64 for CIDs
Diffstat (limited to 'cmd_cap.go')
-rw-r--r--cmd_cap.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd_cap.go b/cmd_cap.go
index ce70abc..1f641f4 100644
--- a/cmd_cap.go
+++ b/cmd_cap.go
@@ -33,6 +33,9 @@ func handleClientCap(msg RMsg, client *Client) error {
} else {
err = client.Send(MakeMsg(self, "CAP", client.Nick, "LS", capls))
}
+ if err != nil {
+ return err
+ }
} else {
err = client.Send(MakeMsg(self, "CAP", client.Nick, "LS", capls))
}