From ee83c3cc5d7e2f6b905f35d402647d04b664d8d9 Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 15 Feb 2010 18:29:19 +0000 Subject: Allow a reason to be specified for git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12468 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/inspircd.conf.example | 3 ++- 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:reason is the message that users will see if they match a deny block + 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())) -- cgit v1.2.3