Skip to content

Commit

Permalink
Add extended join information to join message.
Browse files Browse the repository at this point in the history
  • Loading branch information
GewoonYorick committed Nov 18, 2020
1 parent ee16d98 commit 651a7ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/components/MessageTypes/join.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/irc-events/join.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 651a7ac

Please sign in to comment.