Use '#' as prefix for our tweets if we're uid 0; otherwise '$'.
authorAlexander Færøy <ahf@0x90.dk>
Thu, 9 Apr 2009 01:42:13 +0000 (03:42 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 13 Apr 2009 20:24:53 +0000 (13:24 -0700)
bti.c

diff --git a/bti.c b/bti.c
index 57286d75ac9967e7b05204da8d995bbae0978851..b2bfc458006655dd920a740511d7d33afce6116e 100644 (file)
--- 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);