Merge pull request #1097 from ailin-nemui/cap-extended-joins

use extended-join capability
This commit is contained in:
ailin-nemui 2019-08-14 21:08:11 +02:00 committed by GitHub
commit 6e32c1f638
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 26 additions and 10 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 } },