Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

naughty: fix duplicate processing if $reject eq queue_post

  • Loading branch information...
commit 7720e04fb236df43d29608788f52802670d0ca54 1 parent 3a6d87f
@msimerson authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/naughty
View
4 plugins/naughty
@@ -141,7 +141,7 @@ sub register {
# just in case naughty doesn't disconnect, which can happen if a plugin
# with the same hook returned OK before naughty ran, or ....
- if ( $reject ne 'hook_queue_post' ) { # this chap wants to queue naughty
+ if ( $reject ne 'data_post' && $reject ne 'hook_queue_post' ) {
$self->register_hook( 'data_post', 'naughty');
};
@@ -155,7 +155,7 @@ sub naughty {
$self->log(LOGINFO, "pass, clean");
return DECLINED;
};
- $self->log(LOGINFO, "disconnecting naughty");
+ $self->log(LOGINFO, "disconnecting");
return ( $self->get_reject_type(), $naughty );
};
Please sign in to comment.
Something went wrong with that request. Please try again.