Added regex output matcher, presence test

This commit is contained in:
James Booth
2015-05-29 01:01:34 +01:00
parent f17afcf5d4
commit a522d0225d
9 changed files with 80 additions and 15 deletions

View File

@@ -178,11 +178,17 @@ prof_input(char *input)
}
int
prof_output(char *text)
prof_output_exact(char *text)
{
return (1 == exp_expectl(fd, exp_exact, text, 1, exp_end));
}
int
prof_output_regex(char *text)
{
return (1 == exp_expectl(fd, exp_regexp, text, 1, exp_end));
}
void
prof_connect(char *jid, char *password)
{