Import Debian changes 1.13-1.1
[cascardo/sendxmpp.git] / sendxmpp
index 3959ffb..fc9d65b 100755 (executable)
--- a/sendxmpp
+++ b/sendxmpp
@@ -281,7 +281,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;