on *:input:#somechannel:{ if ($2 == $null) { /echo -a First is working | halt } else { /dns $2 | /echo -a Second is working } }