aboutsummaryrefslogtreecommitdiff
path: root/cmd_cap.go
diff options
context:
space:
mode:
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))
}