mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Allow a reason to be specified for <connect:deny>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12468 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
56d733a9fa
commit
ee83c3cc5d
@ -225,7 +225,8 @@
|
||||
# deny: Will not let people connect if they have specified host/IP.
|
||||
deny="69.254.*">
|
||||
|
||||
<connect deny="3ffe::0/32">
|
||||
# connect:reason is the message that users will see if they match a deny block
|
||||
<connect deny="3ffe::0/32" reason="The 6bone address space is deprecated">
|
||||
|
||||
<connect
|
||||
# name: Name to use for this connect block. Mainly used for
|
||||
|
@ -719,7 +719,7 @@ void LocalUser::CheckClass()
|
||||
}
|
||||
else if (a->type == CC_DENY)
|
||||
{
|
||||
ServerInstance->Users->QuitUser(this, "Unauthorised connection");
|
||||
ServerInstance->Users->QuitUser(this, a->config->getString("reason", "Unauthorised connection"));
|
||||
return;
|
||||
}
|
||||
else if ((a->GetMaxLocal()) && (ServerInstance->Users->LocalCloneCount(this) > a->GetMaxLocal()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user