Import Debian changes 1.15-1
[cascardo/sendxmpp.git] / sendxmpp
index 8df0042..d5546ce 100755 (executable)
--- a/sendxmpp
+++ b/sendxmpp
@@ -307,7 +307,7 @@ sub xmpp_login ($$$$$$$$) {
                connectiontype  => 'tcpip',
                componentname   => $comp
        };
-       $arghash->{port} = $port if (!$port);
+       $arghash->{port} = $port if ($port);
        if (!$port) {
                @res = $cnx->Connect(%$arghash);
                error_exit ("Could not connect to server '$host': $@") unless @res;