]> ToastFreeware Gitweb - gregoa/bti.git/blobdiff - bti.c
Die if no host is provided.
[gregoa/bti.git] / bti.c
diff --git a/bti.c b/bti.c
index 1f1279e11f0a975849db8123b336d0a9f4cb5a77..8447a9d4b650282798b452af3c2188d5126de188 100644 (file)
--- a/bti.c
+++ b/bti.c
@@ -1127,6 +1127,11 @@ int main(int argc, char *argv[], char *envp[])
                goto exit;
        }
 
+       if (!session->host) {
+               fprintf(stderr, "You need to provide a host either in ~/.bti or with --host.\n");
+               goto exit;
+       }
+
        if (session->host == HOST_TWITTER && session->action == ACTION_GROUP) {
                fprintf(stderr, "Groups only work in Identi.ca.\n");
                goto exit;