about summary refs log tree commit diff stats
path: root/tcoin.cpp
diff options
context:
space:
mode:
authorlogin <login@tilde.guru>2021-09-30 15:23:39 +0000
committerlogin <login@tilde.guru>2021-09-30 15:23:39 +0000
commitbd53b1ec0cf20e79828e8e95576a44f1eaf004db (patch)
tree5a60ac794aa6ed3841ab8fabbc48d3526501b81e /tcoin.cpp
parent305ab2bd8c540fa5bf4702a52c5588830c871448 (diff)
downloadtcoin-bd53b1ec0cf20e79828e8e95576a44f1eaf004db.tar.gz
Simple mistake, !a || !b is wrong, !a && !b is correct
Simple logical mistake in checking for the TILDEGURU flag has been corrected in tcoin.cpp
Diffstat (limited to 'tcoin.cpp')
-rw-r--r--tcoin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcoin.cpp b/tcoin.cpp
index 059c407..cd45961 100644
--- a/tcoin.cpp
+++ b/tcoin.cpp
@@ -38,7 +38,7 @@
 #ifndef KROWBAR_OFF
   #define KROWBAR_SCORE_PATH "/home/krowbar/Code/irc/data/tildescores.txt"
 #endif
-#if !defined(TILDEINSTITUTE) || !defined(TILDEGURU)
+#if !defined(TILDEINSTITUTE) && !defined(TILDEGURU)
   #define WHOAMI_PATH "/usr/bin/whoami"
 #else
   #define WHOAMI_PATH "/usr/bin/getent passwd $(/usr/bin/id -ru) | /usr/bin/cut -d: -f1"