remind to repo link too

This commit is contained in:
anon 2023-08-03 12:40:45 +02:00
parent 39cbc21d0d
commit ebd8918966

View File

@ -59,6 +59,7 @@ remind(char * who)
char * r;
char * title;
char * desc;
char * repo;
DBERR(sqlite3_bind_text(remind_stmt, 1, who, -1, SQLITE_STATIC));
const int i = sqlite3_step(remind_stmt);
DBERR(i);
@ -68,7 +69,9 @@ remind(char * who)
title = strdup(title);
desc = (char *) sqlite3_column_text(remind_stmt, 1);
desc = strdup(desc);
asprintf(&r, IRC_COLOR_RED "%s: " IRC_COLOR_YELLOW "%s", title, desc);
repo = (char *) sqlite3_column_text(remind_stmt, 3);
repo = strdup(repo);
asprintf(&r, IRC_COLOR_RED "%s: " IRC_COLOR_YELLOW "%s (@%s)", title, desc, repo);
}
else
{