Sorry about that this should work better we will use the $read only this time and do a if ip is in text file which is the ini in theory then return echo blah blah

here is the full alias script

Code:
alias ipadd {
  %ipadd.nick = $1
  %ipadd.inicalc = $ini(test.ini,%ipadd.nick,0)
  %ipadd.ip = $2
  if (%ipadd.ip isin $read(test.ini,w, * $+ %ipadd.ip $+ *)) { echo -a --**IP is already found in list**-- | halt }
  if (%ipadd.inicalc = 0) { writeini test.ini %ipadd.nick 1 $2- }
  elseif (%ipadd.inicalc > 0) { %ipadd.inicalc = $calc( 1 + $ini(test.ini,%ipadd.nick,0)) 
    writeini test.ini %ipadd.nick %ipadd.inicalc $2-
  }
  unset %ipadd*
}


and thanks for pointing that out i was using something similar i just built awhile ago