!remind no longer breaks the db
This commit is contained in:
parent
b90bcf6f3e
commit
fc6fe42337
@ -65,9 +65,9 @@ remind(char * who)
|
|||||||
title = (char *) sqlite3_column_text(remind_stmt, 0);
|
title = (char *) sqlite3_column_text(remind_stmt, 0);
|
||||||
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);
|
if (desc) { desc = strdup(desc); } else { desc = ""; }
|
||||||
repo = (char *) sqlite3_column_text(remind_stmt, 3);
|
repo = (char *) sqlite3_column_text(remind_stmt, 3);
|
||||||
repo = strdup(repo);
|
if (repo) { repo = strdup(repo); } else { repo = "<no link available>"; }
|
||||||
asprintf(&r, IRC_COLOR_RED "%s: " IRC_COLOR_YELLOW "%s" IRC_COLOR_GREEN " (@" IRC_COLOR_BLUE "%s" IRC_COLOR_GREEN ")" IRC_COLOR_TERMINATE, title, desc, repo);
|
asprintf(&r, IRC_COLOR_RED "%s: " IRC_COLOR_YELLOW "%s" IRC_COLOR_GREEN " (@" IRC_COLOR_BLUE "%s" IRC_COLOR_GREEN ")" IRC_COLOR_TERMINATE, title, desc, repo);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user