Refactor get_send_level to take a power_levels event

it makes it easier for me to reason about
This commit is contained in:
Richard van der Hoff 2018-06-14 11:26:27 +01:00
parent c6b1441c52
commit 557b686eac
2 changed files with 39 additions and 8 deletions

View file

@ -655,7 +655,7 @@ class Auth(object):
auth_events[(EventTypes.PowerLevels, "")] = power_level_event
send_level = event_auth.get_send_level(
EventTypes.Aliases, "", auth_events
EventTypes.Aliases, "", power_level_event,
)
user_level = event_auth.get_user_power_level(user_id, auth_events)