mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +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.
41 lines
875 B
Vue
41 lines
875 B
Vue
<template>
|
|
<table class="invite-list">
|
|
<thead>
|
|
<tr>
|
|
<th class="hostmask">Invited</th>
|
|
<th class="invitened_by">Invited By</th>
|
|
<th class="invitened_at">Invited At</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="invite in channel.data" :key="invite.hostmask">
|
|
<td class="hostmask">
|
|
<ParsedMessage :network="network" :text="invite.hostmask" />
|
|
</td>
|
|
<td class="invitened_by">{{ invite.invited_by }}</td>
|
|
<td class="invitened_at">{{ localetime(invite.invited_at) }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</template>
|
|
|
|
<script>
|
|
import ParsedMessage from "../ParsedMessage.vue";
|
|
import localetime from "../../js/helpers/localetime";
|
|
|
|
export default {
|
|
name: "ListInvites",
|
|
components: {
|
|
ParsedMessage,
|
|
},
|
|
props: {
|
|
network: Object,
|
|
channel: Object,
|
|
},
|
|
methods: {
|
|
localetime(date) {
|
|
return localetime(date);
|
|
},
|
|
},
|
|
};
|
|
</script>
|