commit - 2327b17656b329d6210628f24c77f51533c05620
commit + 245782897b4a8ca092a87bf6d3961cbda1dea962
blob - edaf2603bb79005a9b517a6d809702578fa50991
blob + b0da8073b112ad3f3f354a592296b0b75b7943da
--- src/ngircd/client-cap.c
+++ src/ngircd/client-cap.c
}
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)
{
assert(Client != NULL);
blob - faec1c202948953df7b5e970082032adaf06a99a
blob + e477dc004ea13a1965c8f39608149b79345bb582
--- src/ngircd/client-cap.h
+++ src/ngircd/client-cap.h
GLOBAL int Client_Cap PARAMS((CLIENT *Client));
+GLOBAL void Client_CapSet PARAMS((CLIENT *Client, int Cap));
GLOBAL void Client_CapAdd PARAMS((CLIENT *Client, int Cap));
GLOBAL void Client_CapDel PARAMS((CLIENT *Client, int Cap));