Software /
code /
prosody
Comparison
plugins/mod_admin_adhoc.lua @ 11727:f3aee8a825cc
Fix various spelling errors (thanks codespell)
Also special thanks to timeless, for wordlessly reminding me to check
for typos.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 27 Jul 2021 00:13:18 +0200 |
parent | 11633:77e38ea34d82 |
child | 11872:ffff0d8a9c68 |
comparison
equal
deleted
inserted
replaced
11726:76156c675456 | 11727:f3aee8a825cc |
---|---|
140 local username, host = jid.split(aJID); | 140 local username, host = jid.split(aJID); |
141 if (host == module_host) and usermanager_user_exists(username, host) and usermanager_delete_user(username, host) then | 141 if (host == module_host) and usermanager_user_exists(username, host) and usermanager_delete_user(username, host) then |
142 module:log("info", "User %s has been deleted by %s", aJID, jid.bare(data.from)); | 142 module:log("info", "User %s has been deleted by %s", aJID, jid.bare(data.from)); |
143 succeeded[#succeeded+1] = aJID; | 143 succeeded[#succeeded+1] = aJID; |
144 else | 144 else |
145 module:log("debug", "Tried to delete non-existant user %s", aJID); | 145 module:log("debug", "Tried to delete non-existent user %s", aJID); |
146 failed[#failed+1] = aJID; | 146 failed[#failed+1] = aJID; |
147 end | 147 end |
148 end | 148 end |
149 return {status = "completed", info = (#succeeded ~= 0 and | 149 return {status = "completed", info = (#succeeded ~= 0 and |
150 "The following accounts were successfully deleted:\n"..t_concat(succeeded, "\n").."\n" or "").. | 150 "The following accounts were successfully deleted:\n"..t_concat(succeeded, "\n").."\n" or "").. |