aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_restrictchans.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-03-24 21:26:17 +0000
committerGravatar Sadie Powell2024-03-24 21:26:52 +0000
commitbe39ca94ccd4ca7f733bcc273bbbe3c98835cdfc (patch)
tree5f97ef170bc413957a480c6249fad09ce9d219fd /src/modules/m_restrictchans.cpp
parentAllow rmode to remove all modes matching a specific user. (diff)
Use ERR_RESTRICTED instead of ERR_BANNEDFROMCHAN in restrictchans.
This shouldn't be hidden by clients. Closes #2084.
Diffstat (limited to 'src/modules/m_restrictchans.cpp')
-rw-r--r--src/modules/m_restrictchans.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp
index 6084bd600..beb7a10bd 100644
--- a/src/modules/m_restrictchans.cpp
+++ b/src/modules/m_restrictchans.cpp
@@ -83,7 +83,7 @@ public:
// channel does not yet exist (record is null, about to be created IF we were to allow it)
if (!override && !chan && !CanCreateChannel(user, cname))
{
- user->WriteNumeric(ERR_BANNEDFROMCHAN, cname, "You are not allowed to create new channels.");
+ user->WriteNumeric(ERR_RESTRICTED, cname, "You are not allowed to create new channels.");
return MOD_RES_DENY;
}