From 2d4f4a299a6470b0bc59cb1915f5f73e40bfcf5c Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Wed, 18 Dec 2013 00:17:37 -0500 Subject: [PATCH] naughty: legibility improvement --- plugins/naughty | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/naughty b/plugins/naughty index 3b41826..caea455 100644 --- a/plugins/naughty +++ b/plugins/naughty @@ -140,11 +140,8 @@ sub naughty { return DECLINED; }; $self->log(LOGINFO, "disconnecting"); - my $type = $self->get_reject_type( - 'disconnect', - $self->connection->notes( - 'naughty_reject_type') - ); + my $rtype = $self->connection->notes( 'naughty_reject_type' ); + my $type = $self->get_reject_type( 'disconnect', $rtype ); return ($type, $naughty); }