about summary refs log tree commit diff
path: root/handle.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-07-30 18:55:09 -0400
committerJune McEnroe <june@causal.agency>2022-07-30 18:55:09 -0400
commitb373a5c0919c972f69d44785ad74aa37afe113de (patch)
tree019e418d6c7cbe347db0b3aa522a5f0ac93a5145 /handle.c
parentSwitch to cache interfaces (diff)
downloadcatgirl-b373a5c0919c972f69d44785ad74aa37afe113de.tar.gz
catgirl-b373a5c0919c972f69d44785ad74aa37afe113de.zip
Rename cache{Prefix,Substr} to cache{Complete,Search}
Diffstat (limited to 'handle.c')
-rw-r--r--handle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/handle.c b/handle.c
index 8034957..2dfa3ae 100644
--- a/handle.c
+++ b/handle.c
@@ -641,7 +641,7 @@ static void handleReplyNoTopic(struct Message *msg) {
 static void topicCache(uint id, const char *topic) {
 	char buf[512];
 	struct Cursor curs = {0};
-	const char *prev = cachePrefix(&curs, id, "/topic ");
+	const char *prev = cacheComplete(&curs, id, "/topic ");
 	if (prev) {
 		snprintf(buf, sizeof(buf), "%s", prev);
 		cacheRemove(id, buf);
@@ -720,7 +720,7 @@ static void handleTopic(struct Message *msg) {
 	}
 
 	struct Cursor curs = {0};
-	const char *prev = cachePrefix(&curs, id, "/topic ");
+	const char *prev = cacheComplete(&curs, id, "/topic ");
 	if (prev) {
 		prev += 7;
 	} else {