From 533797f6e73b6664268e961935b3f75041734ea2 Mon Sep 17 00:00:00 2001 From: aurhat Date: Sat, 20 Sep 2014 00:29:27 +0200 Subject: [PATCH] Don't show "connecting to $servername", if server doesn't have a name --- config/scripts.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/scripts.cfg b/config/scripts.cfg index 14e6ba07..11ccd225 100644 --- a/config/scripts.cfg +++ b/config/scripts.cfg @@ -257,7 +257,8 @@ const sbconnect [ if (= $arg4 1) [ sbmsg = [This server is password-protected.]; showmenu [password required] ] [ - echo connecting to $arg7; connect $arg1 $arg2; + if (> (strlen $arg7) 0) [ echo connecting to $arg7 ] + connect $arg1 $arg2 ] ] ]