Here only shell sessions but check against session.type =~ /meterpreter/ exists later on the code, so maybe it should also be compatible with meterpreter :? just asking