Skip to content

Commit 1e8b118

Browse files
committed
Fix u/u2 code
Don't need to worry about getting a blinded user here; the User constructor does the right thing already. Also fixes a bug where `users` was a list of lists instead of a list.
1 parent e08dc5d commit 1e8b118

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

sogs/__main__.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -466,15 +466,7 @@ def parse_and_set_perm_flags(flags, perm_setting):
466466

467467
users = []
468468
if args.users:
469-
for sid in args.users:
470-
u = User(session_id=sid, try_blinding=True)
471-
u2 = None
472-
if u.is_blinded and sid.startswith('05'):
473-
try:
474-
u2 = User(session_id=sid, try_blinding=False, autovivify=False)
475-
except NoSuchUser:
476-
pass
477-
users.append([u, u2])
469+
users = [User(session_id=sid, try_blinding=True) for sid in args.users]
478470

479471
rooms = []
480472
if args.rooms == ['*']:

0 commit comments

Comments
 (0)