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">
<Username :user="message.from" />
<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
</span>
</template>

View file

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