Software /
code /
prosody
Comparison
plugins/mod_pep.lua @ 9541:742977123168
mod_pep: Add PEP service owners username in configuration to ease identification
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 20 Oct 2018 20:12:53 +0200 |
parent | 9540:8cdd7fec6aa7 |
child | 9542:b8bfcfbe5126 |
comparison
equal
deleted
inserted
replaced
9540:8cdd7fec6aa7 | 9541:742977123168 |
---|---|
164 local service = services[username]; | 164 local service = services[username]; |
165 if service then | 165 if service then |
166 return service; | 166 return service; |
167 end | 167 end |
168 service = pubsub.new({ | 168 service = pubsub.new({ |
169 pep_username = username; | |
169 node_defaults = { | 170 node_defaults = { |
170 ["max_items"] = 1; | 171 ["max_items"] = 1; |
171 ["persist_items"] = true; | 172 ["persist_items"] = true; |
172 ["access_model"] = "presence"; | 173 ["access_model"] = "presence"; |
173 }; | 174 }; |