Software /
code /
prosody-modules
Comparison
mod_http_muc_kick/mod_http_muc_kick.lua @ 4643:df09f9ce0b1b
mod_http_muc_kick: Fix typo
author | Seve Ferrer <seve@delape.net> |
---|---|
date | Thu, 12 Aug 2021 11:05:43 +0200 |
parent | 4642:9fc52ccfb445 |
child | 4652:e524a97730eb |
comparison
equal
deleted
inserted
replaced
4642:9fc52ccfb445 | 4643:df09f9ce0b1b |
---|---|
76 | 76 |
77 -- Kick user by giving them the "none" role | 77 -- Kick user by giving them the "none" role |
78 -- https://xmpp.org/extensions/xep-0045.html#kick | 78 -- https://xmpp.org/extensions/xep-0045.html#kick |
79 local success, error, condition = muc:set_role(true, occupant_jid, nil, reason); | 79 local success, error, condition = muc:set_role(true, occupant_jid, nil, reason); |
80 if not success then | 80 if not success then |
81 return handle_error(response, 400, "Coudln't kick user: ".. error .. ": " .. condition); | 81 return handle_error(response, 400, "Couldn't kick user: ".. error .. ": " .. condition); |
82 end | 82 end |
83 | 83 |
84 -- Kick was successful | 84 -- Kick was successful |
85 return 200; | 85 return 200; |
86 end; | 86 end; |