I made an unfortunate typo
sockclose %n
sockopen %n albinstuff.net 80
sockmark %n $2 $chan
Change %n by %s
Also, what should !check, without a name (or two) after it, do?
I didn't realize you wanted the id= parameter to be dynamic
You need to describe how you want the on text event to work, because it looks like you want to be able to omit some parameters.