Rename room variable due to name collision

This commit is contained in:
Ville Ranki 2020-01-21 00:17:15 +02:00
parent d2a505257d
commit 81af6599cd
1 changed files with 3 additions and 3 deletions

View File

@ -30,9 +30,9 @@ class MatrixModule:
homeservers = dict()
for croomid in bot.client.rooms:
room = bot.client.rooms[croomid]
usercount = usercount + len(room.users)
for user in room.users:
roomobj = bot.client.rooms[croomid]
usercount = usercount + len(roomobj.users)
for user in roomobj.users:
hs = user.split(':')[1]
if homeservers.get(hs):
homeservers[hs] = homeservers[hs] + 1