diff options
| author | 2022-04-12 00:59:11 +0100 | |
|---|---|---|
| committer | 2022-04-12 01:21:06 +0100 | |
| commit | c48c5f374b428b845849b28608bb6cc637636066 (patch) | |
| tree | 332c0cfa37ccbd25cc41851f77fd763d67fbaba0 /src/modules/m_allowinvite.cpp | |
| parent | Use ERR_UNAVAILRESOURCE for things that should be retried later. (diff) | |
Use ERR_RESTRICTED when an action can't be done even with privileges.
Diffstat (limited to 'src/modules/m_allowinvite.cpp')
| -rw-r--r-- | src/modules/m_allowinvite.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_allowinvite.cpp b/src/modules/m_allowinvite.cpp index 5a0150c5e..fda4af4a8 100644 --- a/src/modules/m_allowinvite.cpp +++ b/src/modules/m_allowinvite.cpp @@ -48,7 +48,7 @@ class ModuleAllowInvite : public Module if (res == MOD_RES_DENY) { // Matching extban, explicitly deny /invite - user->WriteNumeric(ERR_CHANOPRIVSNEEDED, channel->name, "You are banned from using INVITE"); + user->WriteNumeric(ERR_RESTRICTED, channel->name, "You are banned from using INVITE"); return res; } if (channel->IsModeSet(ni) || res == MOD_RES_ALLOW) |
