Permalink
Browse files

Small fix in checkresponse() return values.

  • Loading branch information...
1 parent 0e48430 commit f097378aa6fdb259848f0267fac10601fe2032a8 @zaf zaf committed May 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 googletranslate.agi
View
@@ -137,14 +137,14 @@ sub checkresponse {
$input =~ /result=(-?\d+)\s?(.*)$/;
if (!length($1)) {
warn "$name Command failed: $input\n";
- @values = ("-1");
+ @values = (-1, -1);
} else {
warn "$name Command returned: $input\n" if ($debug);
@values = ("$1", "$2");
}
} else {
warn "$name Unexpected result: $input\n";
- @values = ("-1");
+ @values = (-1, -1);
}
return @values;
}

0 comments on commit f097378

Please sign in to comment.