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.
39 lines
826 B
Vue
39 lines
826 B
Vue
<template>
|
|
<table class="ban-list">
|
|
<thead>
|
|
<tr>
|
|
<th class="hostmask">Banned</th>
|
|
<th class="banned_by">Banned By</th>
|
|
<th class="banned_at">Banned At</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="ban in channel.data" :key="ban.hostmask">
|
|
<td class="hostmask"><ParsedMessage :network="network" :text="ban.hostmask" /></td>
|
|
<td class="banned_by">{{ ban.banned_by }}</td>
|
|
<td class="banned_at">{{ localetime(ban.banned_at) }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</template>
|
|
|
|
<script>
|
|
import ParsedMessage from "../ParsedMessage.vue";
|
|
import localetime from "../../js/helpers/localetime";
|
|
|
|
export default {
|
|
name: "ListBans",
|
|
components: {
|
|
ParsedMessage,
|
|
},
|
|
props: {
|
|
network: Object,
|
|
channel: Object,
|
|
},
|
|
methods: {
|
|
localetime(date) {
|
|
return localetime(date);
|
|
},
|
|
},
|
|
};
|
|
</script>
|