Commit f761e217 authored by Nigel Kukard's avatar Nigel Kukard

Do usage checks on START aswell

- This helps with other plugins that hook in on the START phase

Change-Id: Ibffea55c24f40b536b4d01fa67d1934190258c0f
parent b2b89b47
......@@ -423,7 +423,7 @@ sub post_acct_hook
return MOD_RES_SKIP if ($user->{'_UserDB'}->{'Name'} eq "SQL User Database (MAC authentication)");
# Exceeding maximum, must be disconnected
return MOD_RES_SKIP if ($packet->rawattr('Acct-Status-Type') ne "3");
return MOD_RES_SKIP if ($packet->rawattr('Acct-Status-Type') ne "1" && $packet->rawattr('Acct-Status-Type') ne "3");
$server->log(LOG_DEBUG,"[MOD_FEATURE_CAPPING] POST ACCT HOOK");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment