File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ def print_room(room: Room):
252
252
print ("Error: --rooms is required when using --add-moderators" , file = sys .stderr )
253
253
sys .exit (1 )
254
254
for a in args .add_moderators :
255
- if not re .fullmatch (r'05 [A-Fa-f0-9]{64}' , a ):
255
+ if not re .fullmatch (r'[01]5 [A-Fa-f0-9]{64}' , a ):
256
256
print (f"Error: '{ a } ' is not a valid session id" , file = sys .stderr )
257
257
sys .exit (1 )
258
258
if len (args .rooms ) > 1 and ('*' in args .rooms or '+' in args .rooms ):
@@ -302,7 +302,7 @@ def print_room(room: Room):
302
302
print ("Error: --rooms is required when using --delete-moderators" , file = sys .stderr )
303
303
sys .exit (1 )
304
304
for a in args .delete_moderators :
305
- if not re .fullmatch (r'05 [A-Fa-f0-9]{64}' , a ):
305
+ if not re .fullmatch (r'[01]5 [A-Fa-f0-9]{64}' , a ):
306
306
print (f"Error: '{ a } ' is not a valid session id" , file = sys .stderr )
307
307
sys .exit (1 )
308
308
if len (args .rooms ) > 1 and ('*' in args .rooms or '+' in args .rooms ):
You can’t perform that action at this time.
0 commit comments