diff options
-rw-r--r-- | clients/zleave/zleave.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/clients/zleave/zleave.c b/clients/zleave/zleave.c index ee5f6fc..af3aff4 100644 --- a/clients/zleave/zleave.c +++ b/clients/zleave/zleave.c @@ -83,15 +83,16 @@ char **argv; "Can't find WindowGram subscription port.\n"); fprintf(stderr,"Will write directly to terminal.\n"); use_zephyr = 0; + } else { + sub.class = MESSAGE_CLASS; + sub.classinst = INSTANCE; + sub.recipient = ZGetSender(); + if (ZSubscribeTo(&sub,1,(u_short)port) != ZERR_NONE) { + fprintf(stderr, + "Subscription error! Writing to your terminal...\n"); + use_zephyr = 0; + } } - sub.class = MESSAGE_CLASS; - sub.classinst = INSTANCE; - sub.recipient = ZGetSender(); - if (ZSubscribeTo(&sub,1,(u_short)port) != ZERR_NONE) { - fprintf(stderr, - "Subscription error! Writing to your terminal...\n"); - use_zephyr = 0; - } } if (argc < 2) { |