mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00: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.
37 lines
732 B
Vue
37 lines
732 B
Vue
<template>
|
|
<table class="ignore-list">
|
|
<thead>
|
|
<tr>
|
|
<th class="hostmask">Hostmask</th>
|
|
<th class="when">Ignored At</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="user in channel.data" :key="user.hostmask">
|
|
<td class="hostmask"><ParsedMessage :network="network" :text="user.hostmask" /></td>
|
|
<td class="when">{{ localetime(user.when) }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</template>
|
|
|
|
<script>
|
|
import ParsedMessage from "../ParsedMessage.vue";
|
|
import localetime from "../../js/helpers/localetime";
|
|
|
|
export default {
|
|
name: "ListIgnored",
|
|
components: {
|
|
ParsedMessage,
|
|
},
|
|
props: {
|
|
network: Object,
|
|
channel: Object,
|
|
},
|
|
methods: {
|
|
localetime(date) {
|
|
return localetime(date);
|
|
},
|
|
},
|
|
};
|
|
</script>
|