diff options
| author | olive <olive@olive.ooo> | 2026-09-13 17:05:53 +0100 |
|---|---|---|
| committer | olive <olive@olive.ooo> | 2026-09-13 17:09:32 +0100 |
| commit | 359b94d98084b1e005d5add74f3739f6ef36aa8b (patch) | |
| tree | 273c39c61c472ad59b1e3829ead357011e38d546 /nanochat/pylon.lua | |
| parent | c95ff81b4fced35a329493ca593a0c9a0610e4a1 (diff) | |
xmpp: multi-muc, sep out user resolution
Diffstat (limited to 'nanochat/pylon.lua')
| -rw-r--r-- | nanochat/pylon.lua | 4 |
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 |
