X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fsendxmpp.git;a=blobdiff_plain;f=sendxmpp;fp=sendxmpp;h=fc9d65b9fef882231f274ec849361b233806bc1f;hp=3959ffbb7fabc9c9e1e080d4c9fbee0aacae0083;hb=f02f1b597860053d39b3743e4e482c071d5452f8;hpb=b2ddd2777947f64a34de02204131bf2223e7c7d7 diff --git a/sendxmpp b/sendxmpp index 3959ffb..fc9d65b 100755 --- 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;