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 {