summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-12-29 00:09:29 +0100
committertv <tv@krebsco.de>2021-12-29 00:09:29 +0100
commitefc9922464b8f641c967bfcab18ea1cfd78940ca (patch)
tree75e6089ac6c335f876f5124627bbc13a94127c32
parentedc7410772b23f72bd88d42a389cac8201300dfa (diff)
ircsink: use $USER as fallback1.2.0
-rwxr-xr-xbin/ircsink1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/ircsink b/bin/ircsink
index 9b8289a..4e1a844 100755
--- a/bin/ircsink
+++ b/bin/ircsink
@@ -143,6 +143,7 @@ main() {(
}
{
+ LOGNAME=${LOGNAME-$USER}
echo2 "USER $LOGNAME 0 * :$LOGNAME@$(hostname)"
echo2 "NICK $nick"