Merge pull request #4105 from GewoonYorick/3700/add-extended-join-info

Add extended join information to join message
This commit is contained in:
Pavel Djundik 2020-11-19 16:26:16 +02:00 committed by GitHub
commit 4529118fd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,12 @@
<span class="content"> <span class="content">
<Username :user="message.from" /> <Username :user="message.from" />
<i class="hostmask"> ({{ message.hostmask }})</i> <i class="hostmask"> ({{ message.hostmask }})</i>
<template v-if="message.account !== false">
<i class="account"> [{{ message.account }}]</i>
</template>
<template v-if="message.gecos !== false">
<i class="realname"> {{ message.gecos }} -</i>
</template>
has joined the channel has joined the channel
</span> </span>
</template> </template>

View File

@ -41,6 +41,8 @@ module.exports = function (irc, network) {
time: data.time, time: data.time,
from: user, from: user,
hostmask: data.ident + "@" + data.hostname, hostmask: data.ident + "@" + data.hostname,
gecos: data.gecos,
account: data.account,
type: Msg.Type.JOIN, type: Msg.Type.JOIN,
self: data.nick === irc.user.nick, self: data.nick === irc.user.nick,
}); });