diff options
| author | 2010-08-06 20:46:35 -0400 | |
|---|---|---|
| committer | 2010-08-06 20:46:35 -0400 | |
| commit | d052d575fd12937bdcdaed902f9cd5aa0cdffc12 (patch) | |
| tree | abb2d47b801b5814429242edd33796fa589e05e5 /src/modules/m_chanacl.cpp | |
| parent | Add <opflags> config tag (diff) | |
Give an error message to users denied by an ACL
Diffstat (limited to 'src/modules/m_chanacl.cpp')
| -rw-r--r-- | src/modules/m_chanacl.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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) |
