summaryrefslogtreecommitdiff
path: root/xP
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-21 16:32:08 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-21 16:32:35 +0200
commitd3628928b919bd12deb224f5c3db3a7be5e7140b (patch)
tree7d3833e13f9157dd614453d459aba500a6f0d867 /xP
parent1f0e0b1ce40b765af744d025a83bb85e0994244d (diff)
downloadxK-d3628928b919bd12deb224f5c3db3a7be5e7140b.tar.gz
xK-d3628928b919bd12deb224f5c3db3a7be5e7140b.tar.xz
xK-d3628928b919bd12deb224f5c3db3a7be5e7140b.zip
xC/xP: relay and render channel modes
Diffstat (limited to 'xP')
-rw-r--r--xP/public/xP.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/xP/public/xP.js b/xP/public/xP.js
index f418d50..7bbf530 100644
--- a/xP/public/xP.js
+++ b/xP/public/xP.js
@@ -328,6 +328,7 @@ rpcEventHandlers.set(Relay.Event.BufferUpdate, e => {
b.kind = e.context.kind
b.server = servers.get(e.context.serverName)
b.topic = e.context.topic
+ b.modes = e.context.modes
})
rpcEventHandlers.set(Relay.Event.BufferStats, e => {
@@ -702,6 +703,8 @@ let Status = {
return m('.status', {}, 'Synchronizing...')
let status = `${bufferCurrent}`
+ if (b.modes)
+ status += `(+${b.modes})`
if (b.hideUnimportant)
status += `<H>`
return m('.status', {}, [status, m(Toolbar)])
@@ -716,8 +719,8 @@ let Prompt = {
if (b.server.data.user !== undefined) {
let user = b.server.data.user
- if (b.server.data.userMode)
- user += `(${b.server.data.userMode})`
+ if (b.server.data.userModes)
+ user += `(${b.server.data.userModes})`
return m('.prompt', {}, `${user}`)
}