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:17:52 +0000
committerlogin <login@tilde.guru>2021-09-30 15:17:52 +0000
commit305ab2bd8c540fa5bf4702a52c5588830c871448 (patch)
treec5882b11f25d1ee3a77e422b7264f7436636e1a6 /tcoin.cpp
parenta6d0ab35518fb25f17c04b2c2b43982e1f9b47cd (diff)
downloadtcoin-305ab2bd8c540fa5bf4702a52c5588830c871448.tar.gz
Fixes for tilde.guru to tcoin.cpp and ntcoin_freebsd_tildeguru
/usr/bin/whoami doesn't give the euid's username, but the uid's on FreeBSD, so did the same thing I did for tilde.institute, but for tilde.guru too and introduced a new flag for it, TILDEGURU.
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 392c603..059c407 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
-#ifndef TILDEINSTITUTE
+#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"