Code:
 if ($did == 2) { 
    if ($me !ison $?="Enter the channel you wish to join:") {
      if ($chr(35) isin $!) { /join $! }
      elseif ($chr(35) !isin $!) { join #$! }
      else { halt }
    }
  }

This works ok if # is in the channel name that the person tries to join. But if # isn't, , I get the error " test No such channel "