summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-10-30 17:18:27 -0400
committerJune McEnroe <june@causal.agency>2022-10-30 17:18:27 -0400
commit81608f2dd47a5ea42ac4c5e849fd4fd136facc5b (patch)
tree44a3b00cdb85c6a9500a5f353cc103d2f835bec7
parentRefactor edit options list (diff)
downloadpounce-81608f2dd47a5ea42ac4c5e849fd4fd136facc5b.tar.gz
pounce-81608f2dd47a5ea42ac4c5e849fd4fd136facc5b.zip
Check local-pass and sasl-plain in edit
Diffstat (limited to '')
-rw-r--r--edit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/edit.c b/edit.c
index 7401a3c..6dbff8a 100644
--- a/edit.c
+++ b/edit.c
@@ -259,13 +259,13 @@ static const char *checkSize(const char *value) {
 }
 
 static const char *checkHash(const char *value) {
-	// TODO
-	return NULL;
+	if (!value) return "requires a value";
+	return (value[0] != '$' ? "must be hashed" : NULL);
 }
 
 static const char *checkPair(const char *value) {
-	// TODO
-	return NULL;
+	if (!value) return "requires a value";
+	return (strchr(value, ':') ? NULL : "must be colon-separated");
 }
 
 static const struct {
4-09-25Add photos from September 15June McEnroe 2024-09-24Add photos from September 14June McEnroe 2024-09-24Add photos from September 12June McEnroe 2024-09-24Add photos from September 7June McEnroe 2024-09-24Allow not having descriptionsJune McEnroe 2024-09-23Automatically select the last used lens for a bodyJune McEnroe 2024-09-19Add photos from September 5June McEnroe 2024-09-15Add some more film stocks to the listJune McEnroe 2024-09-13Add photos from September 2June McEnroe 2024-09-13Add Fomapan 200 to films listJune McEnroe 2024-09-10Add August 29 picnic photosJune McEnroe 2024-09-08Apply some bold to trips renderingJune McEnroe 2024-09-08Render trips hopefully more efficientlyJune McEnroe 2024-09-08Allow removing bodies and lensesJune McEnroe 2024-09-08Limit body width so it looks less silly on desktopJune McEnroe 2024-09-07Handle no film being loadedJune McEnroe 2024-09-07Fancy up the text a littleJune McEnroe