remind to repo link too
This commit is contained in:
parent
39cbc21d0d
commit
ebd8918966
@ -59,6 +59,7 @@ remind(char * who)
|
|||||||
char * r;
|
char * r;
|
||||||
char * title;
|
char * title;
|
||||||
char * desc;
|
char * desc;
|
||||||
|
char * repo;
|
||||||
DBERR(sqlite3_bind_text(remind_stmt, 1, who, -1, SQLITE_STATIC));
|
DBERR(sqlite3_bind_text(remind_stmt, 1, who, -1, SQLITE_STATIC));
|
||||||
const int i = sqlite3_step(remind_stmt);
|
const int i = sqlite3_step(remind_stmt);
|
||||||
DBERR(i);
|
DBERR(i);
|
||||||
@ -68,7 +69,9 @@ remind(char * who)
|
|||||||
title = strdup(title);
|
title = strdup(title);
|
||||||
desc = (char *) sqlite3_column_text(remind_stmt, 1);
|
desc = (char *) sqlite3_column_text(remind_stmt, 1);
|
||||||
desc = strdup(desc);
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user