summaryrefslogtreecommitdiff
path: root/modules/protocol/unrealircd.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-10-25 14:50:04 +0100
committerSadie Powell <sadie@witchery.services>2024-10-25 14:50:04 +0100
commit8ee85efd70016e0e6102f3305be02c08e33ac71d (patch)
treec224f6b14eea651d7110dc994a77800db0ce77c1 /modules/protocol/unrealircd.cpp
parent0cab675825e3dc1a206f55b5bd20192814b15a93 (diff)
Fix parsing mode changes from users on UnrealIRCd.
Diffstat (limited to 'modules/protocol/unrealircd.cpp')
-rw-r--r--modules/protocol/unrealircd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/protocol/unrealircd.cpp b/modules/protocol/unrealircd.cpp
index 8902396fd..ebab51d3c 100644
--- a/modules/protocol/unrealircd.cpp
+++ b/modules/protocol/unrealircd.cpp
@@ -1163,7 +1163,7 @@ struct IRCDMessageMode final
auto ts = final_is_ts ? IRCD->ExtractTimestamp(params.back()) : 0;
if (c)
- c->SetModesInternal(source, params[2], { params.begin() + 3, last_param }, ts);
+ c->SetModesInternal(source, params[1], { params.begin() + 2, last_param }, ts);
}
else
{