From d052d575fd12937bdcdaed902f9cd5aa0cdffc12 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Fri, 6 Aug 2010 20:46:35 -0400 Subject: Give an error message to users denied by an ACL --- src/modules/m_chanacl.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_chanacl.cpp b/src/modules/m_chanacl.cpp index acb8be72d..04ace2873 100644 --- a/src/modules/m_chanacl.cpp +++ b/src/modules/m_chanacl.cpp @@ -122,12 +122,16 @@ class ModuleChanACL : public Module else if (memb && memb->getRank() >= minrank) perm.result = MOD_RES_ALLOW; else + { + perm.ErrorNumeric(ERR_CHANOPRIVSNEEDED, "%s :You do not have access to %s on this channel (ACLs active)", + perm.chan->name.c_str(), perm.name.c_str()); perm.result = MOD_RES_DENY; + } } Version GetVersion() { - return Version("Provides the ability to allow channel operators to be exempt from certain modes.",VF_VENDOR); + return Version("Provides the ability to define channel access control lists.",VF_VENDOR); } void OnRehash(User* user) -- cgit v1.3.1-10-gc9f91