summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index f5b743b..d32b091 100644
--- a/main.c
+++ b/main.c
@@ -46,7 +46,7 @@ int main(int argc, char **argv) {
int rc;
int ovector[30];
- rc = pcre_exec(rs->text, NULL, line, strlen(line), 0, 0, ovector, 30);
+ rc = pcre_exec(rs->text, rs->text_e, line, strlen(line), 0, 0, ovector, 30);
if(rc > 0) {
char nick[NICK_BUFFER_SIZE], text[TEXT_BUFFER_SIZE];
pcre_copy_named_substring(rs->text, line, ovector, rc, "nick", nick, NICK_BUFFER_SIZE);
@@ -85,7 +85,7 @@ int main(int argc, char **argv) {
continue;
}
- rc = pcre_exec(rs->join, NULL, line, strlen(line), 0, 0, ovector, 30);
+ rc = pcre_exec(rs->join, rs->join_e, line, strlen(line), 0, 0, ovector, 30);
if(rc > 0) {
char nick[NICK_BUFFER_SIZE];
pcre_copy_named_substring(rs->join, line, ovector, rc, "nick", nick, NICK_BUFFER_SIZE);