From 8b8a204f08f87215b61ae6e5c24446ad497d116c Mon Sep 17 00:00:00 2001 From: James S Date: Thu, 24 Dec 2009 15:17:31 +0800 Subject: [PATCH] fix typo, max_retrys -> max_retries --- Grab.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Grab.pm b/Grab.pm index 631ebbd..1e874d5 100644 --- a/Grab.pm +++ b/Grab.pm @@ -16,7 +16,7 @@ my $last_seen_messages = {}; # Number of times a query should be made looking for something different # from the past message before giving up and returning the same message # with a note that there is only one entry. -my $max_retrys = 3; +my $max_retries = 3; my $dbh = DBI->connect("dbi:SQLite:dbname=db_blink.sqlite3","","",{AutoCommit=>1,PrintError=>1}); @@ -69,9 +69,9 @@ sub fetchr { return "No grabbed quotes for $who in this channel." unless @data; #How many times have we been through this function? If its - #larger then $max_retrys abort with a meaningful message letting + #larger then $max_retries abort with a meaningful message letting #the person making the query know there is only one entry. - return "Only entry: " . $data[0] if $calls > $max_retrys; + return "Only entry: " . $data[0] if $calls > $max_retries; #At this point we are pretty sure we have _a_ result from the #database, now lets check if that result is the same or not.