Pretty-print buffer name in buffer header

This commit is contained in:
Simon Ser 2021-05-31 17:39:37 +02:00
parent 6e16163103
commit bc7162ebe2
3 changed files with 24 additions and 19 deletions

View file

@ -1,22 +1,6 @@
import * as irc from "../lib/irc.js";
import { html, Component } from "../lib/index.js";
import { BufferType, Unread, getBufferURL } from "../state.js";
function getNetworkName(network, bouncerNetwork, bouncer) {
if (bouncerNetwork && bouncerNetwork.name) {
return bouncerNetwork.name;
}
if (bouncer) {
return "bouncer";
}
var netName = network.isupport.get("NETWORK");
if (netName) {
return netName;
}
return "server";
}
import { BufferType, Unread, getBufferURL, getNetworkName } from "../state.js";
function BufferItem(props) {
function handleClick(event) {