Software /
code /
prosody
Comparison
plugins/mod_invites.lua @ 13096:9638ff8b1c81
mod_invites: Fix password reset invites
Caused by roles changing from table|nil to always table in c2616274bef7
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 07 May 2023 12:52:31 +0200 |
parent | 13012:c2616274bef7 |
child | 13161:9ba11ef91ce4 |
comparison
equal
deleted
inserted
replaced
13095:1693bd4de283 | 13096:9638ff8b1c81 |
---|---|
319 end | 319 end |
320 end | 320 end |
321 | 321 |
322 local invite; | 322 local invite; |
323 if allow_reset then | 323 if allow_reset then |
324 if roles then | 324 if roles[1] then |
325 print("--role/--admin and --reset are mutually exclusive") | 325 print("--role/--admin and --reset are mutually exclusive") |
326 return 2; | 326 return 2; |
327 end | 327 end |
328 if #groups > 0 then | 328 if #groups > 0 then |
329 print("--group and --reset are mutually exclusive") | 329 print("--group and --reset are mutually exclusive") |