18 typedef std::vector
<question_t
*> questions_t
;
19 typedef std::map
<imcontact
, captchaasked_t
> captchas_t
;
22 questions_t questions
;
27 /* check if we are already testing this contact */
28 bool docaptcha(imcontact c
);
29 void donecaptcha(imcontact c
);
31 bool checkcaptcha(imcontact c
, string answer
);
32 /* get a (new) question for a contact and remeber it */
33 string
getcaptchaquestion(imcontact c
);
37 void addquestion(string data
);