Do you get any error messages?
This works for me
Code:
on *:input:#somechannel:{
  if ($2 == $null) { /echo -a First is working | halt }
  else { /dns $2 | /echo -a Second is working }
}

So, I think that your code should work, too.


velicha dusha moja Gospoda