1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Fix extracting the mode parameters from MODE on UnrealIRCd.

This commit is contained in:
Sadie Powell
2024-10-04 13:23:50 +01:00
parent 4cdbf560e1
commit 184350ff4a
+1 -1
View File
@@ -1128,7 +1128,7 @@ struct IRCDMessageMode final
void Run(MessageSource &source, const std::vector<Anope::string> &params, const Anope::map<Anope::string> &tags) override
{
auto final_is_ts = server_ts && source.GetServer() != NULL;
auto last_param = params.end() - (final_is_ts ? 1 : 0);
auto last_param = params.end() - (params.size() > 3 && final_is_ts ? 1 : 0);
if (IRCD->IsChannelValid(params[0]))
{