diff --git a/plugins/labhub.py b/plugins/labhub.py index ca0b3502..9745fe16 100644 --- a/plugins/labhub.py +++ b/plugins/labhub.py @@ -110,7 +110,7 @@ def is_team_member(self, user, team): @staticmethod def is_room_member(invitee, msg): - return invitee in msg.frm.room.occupants + return GitterRoomOccupant(username = invitee) in msg.frm.room.occupants # Ignore LineLengthBear, PycodestyleBear @re_botcmd(pattern=r'^(?:(?:welcome)|(?:inv)|(?:invite))\s+@?([\w-]+)(?:\s+(?:to)\s+(\w+))?$',