From: Alexander Færøy Date: Thu, 9 Apr 2009 01:42:13 +0000 (+0200) Subject: Use '#' as prefix for our tweets if we're uid 0; otherwise '$'. X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/commitdiff_plain/17b129bfd53d5a56861918f343a53e3ec4708ed1?hp=a28068cfbba3c371942a7e9eb5cebcac603d2553 Use '#' as prefix for our tweets if we're uid 0; otherwise '$'. --- diff --git a/bti.c b/bti.c index 57286d7..b2bfc45 100644 --- a/bti.c +++ b/bti.c @@ -1091,7 +1091,7 @@ int main(int argc, char *argv[], char *envp[]) session->tweet = zalloc(strlen(tweet) + 10); if (session->bash) - sprintf(session->tweet, "$ %s", tweet); + sprintf(session->tweet, "%c %s", getuid() ? '$' : '#', tweet); else sprintf(session->tweet, "%s", tweet);