mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-05 07:12:20 +02:00
4d310cd545
On some IRC networks, users have vanity host masks with colors or other text styling. Rizon is one such network. For example, a user connecting from 127.0.0.1 could instead have the host angerson@this.is.my.host.mask. this.is.my.host.mask may have IRC color code characters in it, which without this change would be displayed as a bunch of jumbled garbage in the /whois response or join/part messages. Resolves #4232.
31 lines
606 B
Vue
31 lines
606 B
Vue
<template>
|
|
<span class="content">
|
|
<Username :user="message.from" />
|
|
has changed
|
|
<span v-if="message.new_ident"
|
|
>username to <b>{{ message.new_ident }}</b></span
|
|
>
|
|
<span v-if="message.new_host"
|
|
>hostname to
|
|
<i class="hostmask"><ParsedMessage :network="network" :text="message.new_host" /></i
|
|
></span>
|
|
</span>
|
|
</template>
|
|
|
|
<script>
|
|
import ParsedMessage from "../ParsedMessage.vue";
|
|
import Username from "../Username.vue";
|
|
|
|
export default {
|
|
name: "MessageTypeChangeHost",
|
|
components: {
|
|
ParsedMessage,
|
|
Username,
|
|
},
|
|
props: {
|
|
network: Object,
|
|
message: Object,
|
|
},
|
|
};
|
|
</script>
|