Improved handling of empty userdata

Does not show gecos and account data in join message if they are an empty string
This commit is contained in:
Nachtalb 2021-04-04 00:39:09 +02:00
parent 500034ff5d
commit 0ccbb90d98
No known key found for this signature in database
GPG key ID: E48DF13C07055D92

View file

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