summary refs log tree commit diff
path: root/scoop.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-01-01 17:05:46 -0500
committerJune McEnroe <june@causal.agency>2020-01-01 17:06:00 -0500
commitfe029d311ef1abc6eba314930cbfbf71a48f1f13 (patch)
tree77ab05116dc3f8d130fd536c47aa6f18992b8dd6 /scoop.c
parentFactor out hashing function (diff)
downloadlitterbox-fe029d311ef1abc6eba314930cbfbf71a48f1f13.tar.gz
litterbox-fe029d311ef1abc6eba314930cbfbf71a48f1f13.zip
Don't special case user being * in queries
It's a side-effect of imports that shouldn't surface elsewhere. Would be
nice to have unscoop figure out how it can eliminate using * in more
places.
Diffstat (limited to 'scoop.c')
-rw-r--r--scoop.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/scoop.c b/scoop.c
index 6caafe9..0bf3230 100644
--- a/scoop.c
+++ b/scoop.c
@@ -179,10 +179,7 @@ static const char *Inner = SQL(
 		strftime(coalesce(:format, '%Y-%m-%dT%H:%M:%SZ'), events.time) AS time,
 		events.type,
 		names.nick,
-		CASE WHEN names.user = '*'
-			THEN names.nick
-			ELSE names.user
-		END,
+		names.user,
 		names.host,
 		events.target,
 		highlight(search, 6, :open, :close),