From ebd8918966ae0be546a57838e526467d074b504e Mon Sep 17 00:00:00 2001 From: anon Date: Thu, 3 Aug 2023 12:40:45 +0200 Subject: [PATCH] remind to repo link too --- src/api.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api.c b/src/api.c index fd82e6f..b622aac 100644 --- a/src/api.c +++ b/src/api.c @@ -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 {