[SimBot-commits] CVS: simbot/plugins currency.pl,1.12,1.13
Status: Abandoned
Brought to you by:
kstange
|
From: Pete P. <fou...@us...> - 2005-05-15 03:07:04
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10593/plugins Modified Files: currency.pl Log Message: Removing the timeout here. I'll fix it later, when I'm awake. Index: currency.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/currency.pl,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -p -r1.12 -r1.13 --- currency.pl 10 May 2005 02:23:02 -0000 1.12 +++ currency.pl 15 May 2005 03:06:55 -0000 1.13 @@ -51,13 +51,13 @@ sub get_currency { # first, let's get the exchange rate my $rate; if(!defined $SOAP) { - unless($SOAP = new SOAP::Lite - -> service(WSDL_FILE_LOCATION) - ->transport->timeout(5)) + unless($SOAP = SOAP::Lite->new( + service => WSDL_FILE_LOCATION)) { &SimBot::send_message($channel, "$nick: Sorry, but I am having trouble accessing my source for currency conversions. Please try again later."); return; } +# $SOAP->transport->timeout(5); } if(eval { $rate = $SOAP->getRate($from_currency, $to_currency) } && defined $rate) { &SimBot::send_message($channel, "$nick: $orig_amount $from_currency is " |