diff options
-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; } |