Software /
code /
prosody
Comparison
plugins/mod_limits.lua @ 9943:46773fe2be45
mod_limits: Fix typo
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 02 Apr 2019 21:22:20 +0200 |
parent | 9942:b0d5f4ae92b7 |
child | 10099:7e3196e0263e |
comparison
equal
deleted
inserted
replaced
9942:b0d5f4ae92b7 | 9943:46773fe2be45 |
---|---|
98 end | 98 end |
99 | 99 |
100 function module.add_host(module) | 100 function module.add_host(module) |
101 local unlimited_jids = module:get_option_inherited_set("unlimited_jids", {}); | 101 local unlimited_jids = module:get_option_inherited_set("unlimited_jids", {}); |
102 | 102 |
103 if not unlimited_jids:empy() then | 103 if not unlimited_jids:empty() then |
104 module:hook("authentication-success", function (event) | 104 module:hook("authentication-success", function (event) |
105 local session = event.session; | 105 local session = event.session; |
106 local session_type = session.type:match("^[^_]+"); | 106 local session_type = session.type:match("^[^_]+"); |
107 local jid = session.username .. "@" .. session.host; | 107 local jid = session.username .. "@" .. session.host; |
108 if unlimited_jids:contains(jid) then | 108 if unlimited_jids:contains(jid) then |