Implement support for the IRCv3 invite-notify specification. (#2574)
This commit is contained in:
parent
e4fd69e3d4
commit
c06f6f2565
@ -1725,6 +1725,7 @@ static const char * const supported_caps[] = {
|
|||||||
"cap-notify",
|
"cap-notify",
|
||||||
"chghost",
|
"chghost",
|
||||||
"setname",
|
"setname",
|
||||||
|
"invite-notify",
|
||||||
|
|
||||||
/* ZNC */
|
/* ZNC */
|
||||||
"znc.in/server-time-iso",
|
"znc.in/server-time-iso",
|
||||||
|
@ -1165,13 +1165,14 @@ process_named_msg (session *sess, char *type, char *word[], char *word_eol[],
|
|||||||
case WORDL('I','N','V','I'):
|
case WORDL('I','N','V','I'):
|
||||||
if (ignore_check (word[1], IG_INVI))
|
if (ignore_check (word[1], IG_INVI))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (word[4][0] == ':')
|
text = STRIP_COLON(word, word_eol, 4);
|
||||||
EMIT_SIGNAL_TIMESTAMP (XP_TE_INVITED, sess, word[4] + 1, nick,
|
if (serv->p_cmp (word[3], serv->nick))
|
||||||
serv->servername, NULL, 0,
|
EMIT_SIGNAL_TIMESTAMP (XP_TE_INVITEDOTHER, sess, text, nick,
|
||||||
|
word[3], serv->servername, 0,
|
||||||
tags_data->timestamp);
|
tags_data->timestamp);
|
||||||
else
|
else
|
||||||
EMIT_SIGNAL_TIMESTAMP (XP_TE_INVITED, sess, word[4], nick,
|
EMIT_SIGNAL_TIMESTAMP (XP_TE_INVITED, sess, text, nick,
|
||||||
serv->servername, NULL, 0,
|
serv->servername, NULL, 0,
|
||||||
tags_data->timestamp);
|
tags_data->timestamp);
|
||||||
|
|
||||||
|
@ -1295,6 +1295,13 @@ static char * const pevt_invited_help[] = {
|
|||||||
N_("Server Name"),
|
N_("Server Name"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static char * const pevt_invitedother_help[] = {
|
||||||
|
N_("Channel Name"),
|
||||||
|
N_("Nick of person who sent the invite"),
|
||||||
|
N_("Nick of person who was invited"),
|
||||||
|
N_("Server Name"),
|
||||||
|
};
|
||||||
|
|
||||||
static char * const pevt_usersonchan_help[] = {
|
static char * const pevt_usersonchan_help[] = {
|
||||||
N_("Channel Name"),
|
N_("Channel Name"),
|
||||||
N_("Users"),
|
N_("Users"),
|
||||||
|
@ -496,6 +496,12 @@ pevt_invited_help
|
|||||||
%C24*%O$tYou have been invited to %C22$1%O by %C18$2%O (%C29$3%O)
|
%C24*%O$tYou have been invited to %C22$1%O by %C18$2%O (%C29$3%O)
|
||||||
3
|
3
|
||||||
|
|
||||||
|
Invited Other
|
||||||
|
XP_TE_INVITEDOTHER
|
||||||
|
pevt_invitedother_help
|
||||||
|
%C24*%O$t%C26$3%C has been invited to %C22$1%O by %C18$2%O (%C29$4%O)
|
||||||
|
4
|
||||||
|
|
||||||
Join
|
Join
|
||||||
XP_TE_JOIN
|
XP_TE_JOIN
|
||||||
pevt_join_help
|
pevt_join_help
|
||||||
|
Loading…
Reference in New Issue
Block a user