Skip to content

Bug in use of rooms variable / access control to bot #8

@chrisfahr

Description

@chrisfahr

Hi,
there is an issue with your usage of the rooms variable.
In matrix_bot_api.py line 43 (else branch) you try to use it like an array of room objects.
This fails in line 46 when you try to assign handlers.
In the other branch you store (string) ids in it. Then again in line 71 you store objects.
This prevents one from using rooms in the constructor to limit access to the bot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions