#include "stdinc.h"
#include "class.h"
#include "client.h"
-#include "irc_string.h"
+#include "match.h"
#include "ircd.h"
#include "numeric.h"
#include "msg.h"
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("account-notify", CLICAP_ACCOUNT_NOTIFY, 0, 0),
+ _CLICAP("extended-join", CLICAP_EXTENDED_JOIN, 0, 0),
+ _CLICAP("away-notify", CLICAP_AWAY_NOTIFY, 0, 0),
+ _CLICAP("tls", CLICAP_TLS, 0, 0),
};
#define CLICAP_LIST_LEN (sizeof(clicap_list) / sizeof(struct clicap))
if(data)
{
- strlcpy(buf, data, sizeof(buf));
+ rb_strlcpy(buf, data, sizeof(buf));
p = buf;
}
char *p;
int buflen = 0;
int curlen, mlen;
- int i;
+ size_t i;
mlen = rb_sprintf(buf, ":%s CAP %s %s",
me.name,
source_p->flags &= ~FLAGS_CLICAP;
- if(source_p->name[0] && source_p->user)
+ if(source_p->name[0] && source_p->flags & FLAGS_SENTUSER)
{
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);
}
}