Rename room variable due to name collision
This commit is contained in:
parent
d2a505257d
commit
81af6599cd
|
@ -30,9 +30,9 @@ class MatrixModule:
|
||||||
homeservers = dict()
|
homeservers = dict()
|
||||||
|
|
||||||
for croomid in bot.client.rooms:
|
for croomid in bot.client.rooms:
|
||||||
room = bot.client.rooms[croomid]
|
roomobj = bot.client.rooms[croomid]
|
||||||
usercount = usercount + len(room.users)
|
usercount = usercount + len(roomobj.users)
|
||||||
for user in room.users:
|
for user in roomobj.users:
|
||||||
hs = user.split(':')[1]
|
hs = user.split(':')[1]
|
||||||
if homeservers.get(hs):
|
if homeservers.get(hs):
|
||||||
homeservers[hs] = homeservers[hs] + 1
|
homeservers[hs] = homeservers[hs] + 1
|
||||||
|
|
Loading…
Reference in New Issue