Permalink
Browse files

count: trying again

  • Loading branch information...
1 parent c03a915 commit ec986b8b5db718cb12a2686313efdaa0584ffc6d @msimerson committed Jun 5, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 plugins/count_unrecognized_commands
@@ -35,7 +35,8 @@ sub hook_unrecognized_command {
my ($self, $cmd) = @_[0,2];
my $count = $self->connection->notes('unrec_cmd_count') || 0;
- $self->connection->notes('unrec_cmd_count', $count + 1);
+ $count = $count + 1;
+ $self->connection->notes('unrec_cmd_count', $count);
if ( $count < $self->{_unrec_cmd_max} ) {
$self->log(LOGINFO, "'$cmd', ($count)");

0 comments on commit ec986b8

Please sign in to comment.