Use '#' as prefix for our tweets if we're uid 0; otherwise '$'.
[gregoa/bti.git] / 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);