Added smart muting for join/parts, fixed variables