Here is my !listwarns commands

Code:
// Checks warnings
ON 3:TEXT:!listwarns $:#: {
  var %user = $2
  var %warns = $readini(warns.ini, %user, warnings)
  if (%user) == null {
    msg $chan Please type a users name!
  }
  else { 
    msg $chan /me $2 has %warns warnings!
  }
}


Currently it seems to do nothing also, I had it working but I wished to add the if and else, and it seemed to break, Again this is my first time with if and else statements