summaryrefslogtreecommitdiff
path: root/nanochat/pylon.lua
diff options
context:
space:
mode:
authorolive <olive@olive.ooo>2026-09-13 17:05:53 +0100
committerolive <olive@olive.ooo>2026-09-13 17:09:32 +0100
commit359b94d98084b1e005d5add74f3739f6ef36aa8b (patch)
tree273c39c61c472ad59b1e3829ead357011e38d546 /nanochat/pylon.lua
parentc95ff81b4fced35a329493ca593a0c9a0610e4a1 (diff)
xmpp: multi-muc, sep out user resolution
Diffstat (limited to 'nanochat/pylon.lua')
-rw-r--r--nanochat/pylon.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/nanochat/pylon.lua b/nanochat/pylon.lua
index 3e63b7a..096dcf0 100644
--- a/nanochat/pylon.lua
+++ b/nanochat/pylon.lua
@@ -31,9 +31,9 @@ function Nanochat:recving()
if not deliverables[chan] then deliverables[chan] = {} end
local sender, body = msg:match("^([^:]+): (.+)$", msgi)
if sender then
- deliverables[chan][#deliverables[chan]+1] = { i=i, sender=sender, body=body }
+ deliverables[chan][#deliverables[chan]+1] = { i=i, sender="[n]"..sender, body=body }
else
- deliverables[chan][#deliverables[chan]+1] = { i=i, sender=nil, body=msg:sub(msgi,-1) }
+ deliverables[chan][#deliverables[chan]+1] = { i=i, sender="[n]", body=msg:sub(msgi,-1) }
end
end
end