From 1288e9e593bfa014548b1aa48aac4afda98002c8 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 8 May 2021 17:17:29 +0100 Subject: Send ERR_BADCHANMASK when trying to OJOIN/SAJOIN an invalid channel. --- src/modules/m_ojoin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_ojoin.cpp') diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp index 8bc264622..8b0683700 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->IsChannel(parameters[0])) { - user->WriteNotice("*** Invalid characters in channel name or name too long"); + user->WriteNumeric(ERR_BADCHANMASK, parameters[0], "Invalid channel name"); return CMD_FAILURE; } -- cgit v1.3.1-10-gc9f91