mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-02 14:42:53 +02:00
0ccbb90d98
Does not show gecos and account data in join message if they are an empty string
29 lines
556 B
Vue
29 lines
556 B
Vue
<template>
|
|
<span class="content">
|
|
<Username :user="message.from" />
|
|
<i class="hostmask"> ({{ message.hostmask }})</i>
|
|
<template v-if="message.account">
|
|
<i class="account"> [{{ message.account }}]</i>
|
|
</template>
|
|
<template v-if="message.gecos">
|
|
<i class="realname"> {{ message.gecos }}</i>
|
|
</template>
|
|
has joined the channel
|
|
</span>
|
|
</template>
|
|
|
|
<script>
|
|
import Username from "../Username.vue";
|
|
|
|
export default {
|
|
name: "MessageTypeJoin",
|
|
components: {
|
|
Username,
|
|
},
|
|
props: {
|
|
network: Object,
|
|
message: Object,
|
|
},
|
|
};
|
|
</script>
|