summaryrefslogtreecommitdiff
path: root/nanochat
diff options
context:
space:
mode:
Diffstat (limited to 'nanochat')
-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