moan0s / matrix-registration-bot

A bot that is used to create and manage registration tokens for a matrix server
GNU Affero General Public License v3.0
64 stars 10 forks source link

Single allowed user with 'allow' command is broken #29

Open JoiTD opened 1 year ago

JoiTD commented 1 year ago

Adding a single user using the 'allow' command followed by a user address will lock out everyone from using restricted commands. When adding a user via the command in config.toml: allowlist = [ "re.compile('[@user:example.com]')",]

Manually adding just the user address will work: allowlist = [ "@user:example.com",]

CaptainMalu commented 1 year ago

I have the same issue but with two users. Looks like the number of users isn't relevant.

moan0s commented 1 year ago

I believe this is a bug in the simplematrixbotlib (the library which this bot is build upon). I filed a bug report in that project: https://codeberg.org/imbev/simplematrixbotlib/issues/43

parisni commented 11 months ago

hi, do you have any timeline for a fix on this ?

moan0s commented 9 months ago

not really as we are waiting on this: https://codeberg.org/imbev/simplematrixbotlib/pulls/45

0x3639 commented 3 weeks ago

Looks like I have encountered this error also. However, when I try to manually add the user to config.toml

allowlist = [ "@user:example.com",]

The bot will still not accept restricted commands. It will respond to help but not create. I did try to restart the docker image and the issue persists. How can I manually apply this fix?