From 856989ada0eb56edd8a2232a4ada12d90fc33c85 Mon Sep 17 00:00:00 2001 From: Arna-Maity Date: Mon, 6 Jan 2020 19:56:41 +0530 Subject: [PATCH] Modified implementation of is_room_member --- plugins/labhub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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+))?$',