diff options
author | Sadie Powell <sadie@witchery.services> | 2020-04-05 19:10:48 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-04-05 19:10:48 +0100 |
commit | f28c467e95f68f7a1767ebb0bc6f6f12ae407f3a (patch) | |
tree | ef53d929a3b6edb3eb4b72c9d19cb6ae7983edbe | |
parent | 758a0aa59b43d745c1e5569d6350bd5a5fdd8169 (diff) |
Send ERR_BANNEDFROMCHAN when a user can't create a restricted channel.
Closes #1772.
-rw-r--r-- | src/modules/m_restrictchans.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp index ae1091516..7bacda653 100644 --- a/src/modules/m_restrictchans.cpp +++ b/src/modules/m_restrictchans.cpp @@ -80,7 +80,10 @@ class ModuleRestrictChans : public Module { // channel does not yet exist (record is null, about to be created IF we were to allow it) if (!chan && !CanCreateChannel(user, cname)) + { + user->WriteNumeric(ERR_BANNEDFROMCHAN, cname, "You are not allowed to create new channels."); return MOD_RES_DENY; + } return MOD_RES_PASSTHRU; } |