Skip to content

Commit

Permalink
fix typo, max_retrys -> max_retries
Browse files Browse the repository at this point in the history
  • Loading branch information
James S authored and CodeBlock committed Dec 24, 2009
1 parent dade412 commit 8b8a204
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Grab.pm
Expand Up @@ -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});
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 8b8a204

Please sign in to comment.