mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-04 15:33: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.
28 lines
577 B
Vue
28 lines
577 B
Vue
<template>
|
|
<span class="content">
|
|
<Username :user="message.from" />
|
|
<i class="hostmask"> (<ParsedMessage :network="network" :text="message.hostmask" />)</i> has
|
|
left the channel
|
|
<i v-if="message.text" class="part-reason"
|
|
>(<ParsedMessage :network="network" :message="message" />)</i
|
|
>
|
|
</span>
|
|
</template>
|
|
|
|
<script>
|
|
import ParsedMessage from "../ParsedMessage.vue";
|
|
import Username from "../Username.vue";
|
|
|
|
export default {
|
|
name: "MessageTypePart",
|
|
components: {
|
|
ParsedMessage,
|
|
Username,
|
|
},
|
|
props: {
|
|
network: Object,
|
|
message: Object,
|
|
},
|
|
};
|
|
</script>
|