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"> <span class="content">
<Username :user="message.from" /> <Username :user="message.from" />
<i class="hostmask"> ({{ message.hostmask }})</i> <i class="hostmask"> ({{ message.hostmask }})</i>
<template v-if="message.account !== false"> <template v-if="message.account">
<i class="account"> [{{ message.account }}]</i> <i class="account"> [{{ message.account }}]</i>
</template> </template>
<template v-if="message.gecos !== false"> <template v-if="message.gecos">
<i class="realname"> {{ message.gecos }} -</i> <i class="realname"> {{ message.gecos }}</i>
</template> </template>
has joined the channel has joined the channel
</span> </span>