{ "multi-prefix", CAP_MULTIPREFIX },
{ "extended-join", CAP_EXTENDEDJOIN },
{ "away-notify", CAP_AWAYNOTIFY },
+ { "invite-notify", CAP_INVITENOTIFY },
{ 0, 0 }
};
if (strcmp(args[0], "LS") == 0) {
if (args[1] && atoi(args[1]) >= 302)
client->caps |= CAP_302;
- copy_strf(&databuf, ":%s CAP * LS :multi-prefix extended-join away-notify\r\n", hostname);
+ copy_strf(&databuf, ":%s CAP * LS :multi-prefix extended-join away-notify invite-notify\r\n", hostname);
sendbuf(client);
if (!is_registered(client)) {
client->regstate = REG_CAPLS;
sendbuf(client);
msg_invite(client, cl, chan);
sendbuf(cl);
+ sendbuf_chan_caps(chan, CAP_INVITENOTIFY, 0);
} else if(strcmp(command, "PRIVMSG") == 0 || strcmp(command, "NOTICE") == 0) {
if (!is_registered(client))
return err_notregistered(client), sendbuf(client), 0;
copy_strf(&databuf, ":%s NOTICE %s :%s\r\n",
src, dst, msg);
}
-#if 0
void msg_kill(struct client_data *src, struct client_data *dst, const char *reason)
{
copy_strf(&databuf, ":%s!%s@%s KILL %s :%s\r\n",
- src->nick, src->username, src->hostname, dst->nick, msg);
+ src->nick, src->username, src->hostname, dst->nick, reason);
}
+#if 0
void msg_wallops(struct client_data *src, const char *msg)
{
copy_strf(&databuf, ":%s!%s@%s WALLOPS :%s\r\n",