diff options
-rw-r--r-- | docs/inspircd.conf.example | 3 | ||||
-rw-r--r-- | src/users.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/docs/inspircd.conf.example b/docs/inspircd.conf.example index 43afc22f0..b3928712c 100644 --- a/docs/inspircd.conf.example +++ b/docs/inspircd.conf.example @@ -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 diff --git a/src/users.cpp b/src/users.cpp index 0f6cba2da..f69d34fea 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -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())) |