diff options
author | Sadie Powell <sadie@witchery.services> | 2021-05-08 17:17:29 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-05-08 17:21:04 +0100 |
commit | 1288e9e593bfa014548b1aa48aac4afda98002c8 (patch) | |
tree | 2ff15cfda39a538cf9d0655104005a164e4ed7d0 /src/modules/m_ojoin.cpp | |
parent | a1db12cb2e7024981291cbd7e51b73c9a684d76c (diff) |
Send ERR_BADCHANMASK when trying to OJOIN/SAJOIN an invalid channel.
Diffstat (limited to 'src/modules/m_ojoin.cpp')
-rw-r--r-- | src/modules/m_ojoin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |