X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/581fa5c4999f82a176e39e4edad2990759c94f56..320a0f852891ac719c4c3349cfae836f8174bc4f:/modules/m_cap.c diff --git a/modules/m_cap.c b/modules/m_cap.c index 4e31f70..f394cae 100644 --- a/modules/m_cap.c +++ b/modules/m_cap.c @@ -31,10 +31,9 @@ */ #include "stdinc.h" -#include "tools.h" #include "class.h" #include "client.h" -#include "irc_string.h" +#include "match.h" #include "ircd.h" #include "numeric.h" #include "msg.h" @@ -70,7 +69,8 @@ static struct clicap int namelen; } clicap_list[] = { _CLICAP("multi-prefix", CLICAP_MULTI_PREFIX, 0, 0), - _CLICAP("sasl", CLICAP_SASL, 0, 0) + _CLICAP("sasl", CLICAP_SASL, 0, 0), + _CLICAP("presence", CLICAP_PRESENCE, 0, 0) }; #define CLICAP_LIST_LEN (sizeof(clicap_list) / sizeof(struct clicap)) @@ -117,7 +117,7 @@ clicap_find(const char *data, int *negate, int *finished) if(data) { - strlcpy(buf, data, sizeof(buf)); + rb_strlcpy(buf, data, sizeof(buf)); p = buf; } @@ -323,7 +323,7 @@ cap_end(struct Client *source_p, const char *arg) if(source_p->name[0] && source_p->user) { char buf[USERLEN+1]; - strlcpy(buf, source_p->username, sizeof(buf)); + rb_strlcpy(buf, source_p->username, sizeof(buf)); register_local_user(source_p, source_p, buf); } }