Code:
 on @*:text:!abductme:#:{
  set %question $calc($hfind(AS,$+(*,$address),0,w) + 1)
  if %question <= $lines(questions.txt) {
    .enable #input
    set %chan $chan
    question $nick $address %question
  }
  else .mode # +v $nick
}
#input off
alias question {
  set %address $2
  .msg $1 $read(questions.txt,$3)
  set %entry $gettok($read(questions.txt,$3),-1,32)
}
on *:text:*:?:{
  if %address = $address {
    .hadd -m AS $+(%entry,.,$address) $1-
    inc %question
    while %question <= $lines(questions.txt) {
      question $nick $address %question 
      inc %question
    }
    .disable #input
    .close -m $nick
    .mode %chan +v $nick
  }
}
#input end
 


I've narrowed down the problem area to that shown in the above code.

Basically the problem is that after the bot asks the first question and gets a reply, it then asks all 3 of the remaining questions without waiting for responses.

If the problem is not in this area, I will post the full code.

Last edited by RusselB; 14/03/06 04:01 AM.