you could do something like
Code:
on *:QUIT:if (. isin $1) set %split. [ $+ [ $nick ] ] 1

and then when someone joins, if the var is set for them, have it just clear the var and not do anything else