about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--litterbox.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/litterbox.c b/litterbox.c
index 9cc1bb5..f02948e 100644
--- a/litterbox.c
+++ b/litterbox.c
@@ -283,7 +283,14 @@ static void querySearch(struct Message *msg) {
 				);
 		}
 	}
-	if (result != SQLITE_DONE) warnx("%s", sqlite3_errmsg(db));
+	if (result != SQLITE_DONE) {
+		const char *errmsg = sqlite3_errmsg(db);
+		if (!strncmp(errmsg, "fts5:", 5)) {
+			format("NOTICE %s :%s\r\n", msg->nick, errmsg);
+		} else {
+			warnx("%s", sqlite3_errmsg(db));
+		}
+	}
 
 	sqlite3_reset(stmt);
 }