about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-11 12:50:56 -0400
committerJune McEnroe <june@causal.agency>2018-08-11 12:50:56 -0400
commitfec5e51d78ac3b8fc747b9b1dabe8cf14ceaf306 (patch)
tree0f02d35ece9769819b0449bd0d3b378b87a51964
parentFix commented out error handling (diff)
downloadcatgirl-fec5e51d78ac3b8fc747b9b1dabe8cf14ceaf306.tar.gz
catgirl-fec5e51d78ac3b8fc747b9b1dabe8cf14ceaf306.zip
Fix isSelf user checking
Other users with the same username are not self.

The fun effect of this was that I could tab-complete "june_" but not
"june".
-rw-r--r--handle.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/handle.c b/handle.c
index faf44aa..29b354c 100644
--- a/handle.c
+++ b/handle.c
@@ -76,7 +76,6 @@ static void shift(
 
 static bool isSelf(const char *nick, const char *user) {
 	if (!user) return false;
-	if (!strcmp(user, self.user)) return true;
 	if (!strcmp(nick, self.nick)) {
 		if (strcmp(user, self.user)) selfUser(user);
 		return true;
d=57126590cc5c8f5a7c88729dd4a796a0199a36e0&follow=1'>Customize cgit CSSJune McEnroe 2019-12-18Use :target rather than :focus pseudo-classJune McEnroe 2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe 2019-12-18Add git.causal.agency cgit configJune McEnroe 2019-12-18Bail from hi if input is binaryJune McEnroe 2019-12-16Post "cgit setup"June McEnroe