summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-15 18:29:19 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-15 18:29:19 +0000
commitee83c3cc5d7e2f6b905f35d402647d04b664d8d9 (patch)
treeddf7cfdbe2a6ee433f538fe38b68862b4f6f6078 /src/users.cpp
parent56d733a9fa9477d281b62ac9237eb7ac8356340d (diff)
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
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
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()))