aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_ojoin.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-05-11 03:53:43 +0100
committerGravatar Sadie Powell2021-05-11 04:07:45 +0100
commit3ca912ad71cdc4004401e0977be73c674bb91fbc (patch)
treecf57b43229becfc3d9c8532a2d4f18f095f024ec /src/modules/m_ojoin.cpp
parentOptimise building the link data string. (diff)
parentSend ERR_BADCHANMASK when trying to OJOIN/SAJOIN an invalid channel. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_ojoin.cpp')
-rw-r--r--src/modules/m_ojoin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp
index 2ee355fc3..1f8a51f41 100644
--- a/src/modules/m_ojoin.cpp
+++ b/src/modules/m_ojoin.cpp
@@ -49,7 +49,7 @@ class CommandOjoin : public SplitCommand
// Make sure the channel name is allowable.
if (!ServerInstance->Channels.IsChannel(parameters[0]))
{
- user->WriteNotice("*** Invalid characters in channel name or name too long");
+ user->WriteNumeric(ERR_BADCHANMASK, parameters[0], "Invalid channel name");
return CmdResult::FAILURE;
}