condition fix for the global spam enabled setting.