added a line I forgot to add to dispose of nonvisible users.

This commit is contained in:
jesopo 2016-03-30 12:48:50 +01:00
parent 426068f0cf
commit 488a869ba7
No known key found for this signature in database
GPG key ID: 0BBDEB2AEFCFFCB3

View file

@ -135,6 +135,7 @@ def handle_PART(line, line_split, bot, server):
line_split=line_split, server=server, channel=channel, line_split=line_split, server=server, channel=channel,
reason=reason, user=user) reason=reason, user=user)
channel.remove_user(user) channel.remove_user(user)
user.part_channel(channel)
if not len(user.channels): if not len(user.channels):
server.remove_user(user) server.remove_user(user)
else: else: