Ok, am home now..

The socket stuff you've got there is fine, and all works. Even the regex. I literally copy/pasted it into my mIRC, and it worked unaltered.

Just to neaten the ON TEXT up a bit though:

Code:
on *:TEXT:!clan*:#:{
  set %clan.nick. $iif($2, $replace($2- ,$chr(32),_), $nick)
  set %clan.way. notice $nick
  sockopen clan. $+ $right($ticks,5) runehead.com 80
}

If you want some more details on how to do the sockmark stuff, just drop a note..