if ($2 == INVITE) { ms.e $clr(info2) *** $ms.col($gettok($1,1,$asc(!))) ( $+ $gettok($1,2,$asc(!)) $+ ) has invited you to join $ms.col($4) | halt }
if ($1 == ERROR) { ms.e $clr(info2) *** ERROR: $ms.col($2-) | halt }
if ($1 == PING) { sockwrite -n mserver PONG $2 | halt }
if ($2 == NICK) {
if ($ms.col($gettok($1,1,$asc(!))) == $sock(mserver).mark) { sockmark mserver $ms.col($3) | ms.title | ms.e $clr(info2) *** Your nick is now $ms.col($3) }