# HG changeset patch # User Matti Hamalainen # Date 1470773116 -10800 # Node ID 36464fccd38f0429e107eb6b112d1f7106cbe65f # Parent 007859954b6c3c16a28cb9a81b5bec5a03d79f7f Rename a variable. diff -r 007859954b6c -r 36464fccd38f magestats.pl --- a/magestats.pl Tue Aug 09 19:35:44 2016 +0300 +++ b/magestats.pl Tue Aug 09 23:05:16 2016 +0300 @@ -356,7 +356,7 @@ if ($opt_noinput) { mlog(1, "Skipping input parsing."); } else { - my $gflag = 0; + my $ggrtf_flag = 0; mlog(1, "Using GgrTF format only!") if ($opt_ggrtf); mlog(2, "Matching regexp '".$match."'\n"); mlog(1, "Parsing log from stdin ..."); @@ -372,12 +372,12 @@ $$spells{$type}{"reinc"} = 1 if ($$spells{$type}{"essence"}{"increase"} > 0); } } elsif ($s =~ /^You watch with selfpride as your ($match) hits / || $s =~ /^You hit .+? with your ($match)\.$/) { - spell_update($1) if ($gflag == 0); - $gflag = 0; + spell_update($1) if ($ggrtf_flag == 0); + $ggrtf_flag = 0; } elsif ($s =~ /^Your .($match). hits / || $s =~ /^Your ($match) hits /) { if ($opt_ggrtf) { spell_update($1); - $gflag = 1; + $ggrtf_flag = 1; } } elsif ($s =~ /^Your knowledge in elemental powers helps you to save the reagent for further use\./) { if ($last_spell ne "") {