]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/client-cap.c
When sending an error use the IRC_WriteErrClient() variant
[ngircd-alex.git] / src / ngircd / client-cap.c
index edaf2603bb79005a9b517a6d809702578fa50991..b0da8073b112ad3f3f354a592296b0b75b7943da 100644 (file)
@@ -37,6 +37,17 @@ Client_Cap(CLIENT *Client)
        return Client->capabilities;
 }
 
+GLOBAL void
+Client_CapSet(CLIENT *Client, int Cap)
+{
+       assert(Client != NULL);
+       assert(Cap >= 0);
+
+       Client->capabilities = Cap;
+       LogDebug("Set new capability of \"%s\" to %d.",
+                Client_ID(Client), Client->capabilities);
+}
+
 GLOBAL void
 Client_CapAdd(CLIENT *Client, int Cap)
 {