Add extended join information to join message.

This commit is contained in:
Yorick Bosman 2020-11-19 00:25:28 +01:00
parent ee16d98a94
commit 651a7ac2e9
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,
});