However, there are more important indirect effects: sunspots are associated with what we call "active regions", with large magnetic structured containing very hot material (being held in place by the magnetism). This caused more ultraviolet (or UV) radiation (the rays that give you a suntan or sunburn), and extreme ultraviolet radiation (EUV). These types of radiation have an impact on the chemistry of the upper atmosphere (e.g. producing ozone). Since some of these products act as greenhouse gases, the number of sunpots (through association with active regions) may influence the climate in this way.
Please see post #101.