Software /
code /
prosody-modules
Comparison
mod_http_muc_log/mod_http_muc_log.lua @ 3060:982668000163
mod_http_muc_log: Add a note about changing how presence is treated
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 28 May 2018 20:21:01 +0200 |
parent | 3059:14d8f2a9d5f4 |
child | 3061:25eecbb195d9 |
comparison
equal
deleted
inserted
replaced
3059:14d8f2a9d5f4 | 3060:982668000163 |
---|---|
232 if subject then | 232 if subject then |
233 verb, body = "set the topic to", subject; | 233 verb, body = "set the topic to", subject; |
234 elseif body and body:sub(1,4) == "/me " then | 234 elseif body and body:sub(1,4) == "/me " then |
235 verb, body = body:sub(5), nil; | 235 verb, body = body:sub(5), nil; |
236 elseif item.name == "presence" then | 236 elseif item.name == "presence" then |
237 -- TODO Distinguish between join and presence update | |
237 verb = item.attr.type == "unavailable" and "has left" or "has joined"; | 238 verb = item.attr.type == "unavailable" and "has left" or "has joined"; |
238 end | 239 end |
239 if body or verb then | 240 if body or verb then |
240 logs[i], i = { | 241 logs[i], i = { |
241 key = key; | 242 key = key; |