From a0b250df3f801e09b973b99ccaf467f65f2d61ed Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 16 Nov 2021 11:30:33 +0100 Subject: [PATCH] Reword ProtocolHandlerNagger message --- components/buffer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/buffer.js b/components/buffer.js index 9c8096a..e661a1b 100644 --- a/components/buffer.js +++ b/components/buffer.js @@ -446,11 +446,12 @@ class ProtocolHandlerNagger extends Component { if (!navigator.registerProtocolHandler || !this.state.nag) { return null; } + let name = this.props.bouncerName || "this bouncer"; return html`
<${Timestamp}/> ${" "} - To open IRC links here, enable the IRC link handler + Register our protocol handler to open IRC links with ${name}
`; } @@ -504,7 +505,8 @@ export default class Buffer extends Component { children.push(html`<${NotificationNagger}/>`); } if (buf.type == BufferType.SERVER && this.props.isBouncer && !server.isupport.has("BOUNCER_NETID")) { - children.push(html`<${ProtocolHandlerNagger}/>`); + let name = server.isupport.get("NETWORK"); + children.push(html`<${ProtocolHandlerNagger} bouncerName=${name}/>`); } let onChannelClick = this.props.onChannelClick;