You might want to change
on *:TEXT:!soccer:%soccerchan:{
to
on *:TEXT:!soccer:#:{
It wont work with %soccerchan if the channel wasn't set yet, and maybe this script might work better with hash tables, just wondering!