postmoogle/bot
Slavi Pantaleev e59f5d5502 Make Match() with empty list not return a positive result
Now that we use Match() in allowAdmin() as well, it's awkward to
have it return `true` when called with an empty admin list.
No admins defined was taken to mean "everyone is an admin".

We can either have a `len(users) == 0` check in `allowAdmin` which
rejects the request, or we can change `Match()` so that it doesn't
return positive responses when called with an empty list. Doing the
latter sounds better. It's more natural that matching against an empty list
will yield "no match".
2022-08-29 14:10:52 +03:00
..
access.go Make Match() with empty list not return a positive result 2022-08-29 14:10:52 +03:00
bot.go refactored 2022-08-29 12:30:43 +03:00
command.go refactored 2022-08-29 12:30:43 +03:00
context.go refactor to context, remove sentry spans 2022-08-25 22:31:12 +03:00
data.go add 'nofiles' option, refactored bot.Send(); fixes #2 2022-08-26 16:11:08 +03:00
email.go remove debug 2022-08-28 09:37:32 +03:00
message.go proposed changes 2022-08-27 21:59:58 +03:00
mutext.go add per-room mutex, possibly fixes #8 2022-08-27 22:10:22 +03:00
settings.go Put command access checks on the command level 2022-08-29 10:27:53 +03:00
sync.go Put command access checks on the command level 2022-08-29 10:27:53 +03:00