use extended-join capability

This commit is contained in:
ailin-nemui 2019-08-13 02:16:22 +02:00
commit 25270e0465
8 changed files with 25 additions and 9 deletions

View file

@ -349,14 +349,15 @@ static void sig_message_own_private(SERVER_REC *server, const char *msg,
}
static void sig_message_join(SERVER_REC *server, const char *channel,
const char *nick, const char *address)
const char *nick, const char *address,
const char *account, const char *realname)
{
int level = MSGLEVEL_JOINS;
ignore_check_plus(server, nick, address, channel, NULL, &level, FALSE);
printformat(server, channel, level,
TXT_JOIN, nick, address, channel);
TXT_JOIN, nick, address, channel, account, realname);
}
static void sig_message_part(SERVER_REC *server, const char *channel,

View file

@ -94,7 +94,7 @@ FORMAT_REC fecommon_core_formats[] = {
/* ---- */
{ NULL, "Channels", 0 },
{ "join", "{channick_hilight $0} {chanhost_hilight $1} has joined {channel $2}", 3, { 0, 0, 0 } },
{ "join", "{channick_hilight $0} {chanhost_hilight $1} has joined {channel $2}", 5, { 0, 0, 0, 0, 0 } },
{ "part", "{channick $0} {chanhost $1} has left {channel $2} {reason $3}", 4, { 0, 0, 0, 0 } },
{ "kick", "{channick $0} was kicked from {channel $1} by {nick $2} {reason $3}", 5, { 0, 0, 0, 0, 0 } },
{ "quit", "{channick $0} {chanhost $1} has quit {reason $2}", 4, { 0, 0, 0, 0 } },