"Teilnehmer verlässt Raum" hinzu

This commit is contained in:
Reik Kaps 2020-06-19 22:56:13 +02:00
parent ea9d151631
commit 54abce2ea7
1 changed files with 8 additions and 3 deletions

View File

@ -211,10 +211,15 @@ def process_line(line):
roomList[room_name].addMember(room_member)
# participant is leaving a the room
leaving_match = leaving.match(erg.group(7))
leaving_match = leaving.match(erg.group(7))
if leaving_match:
room_name = member_match.group(1).strip()
room_member = member_match.group(3).strip()
try:
room_name = member_match.group(1).strip()
room_member = member_match.group(3).strip()
except:
room_name = 'undefined'
room_member = 'undefined'
print('{} leaves {}'.format(room_member, room_name))
if room_name in roomList:
roomList[room_name].delMember(room_member)