diff options
author | Peter Powell <petpow@saberuk.com> | 2019-11-17 10:20:12 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-11-17 10:23:06 +0000 |
commit | 2832c736dd87060498af8298cb1037f2d4fd2797 (patch) | |
tree | a47502392028081c25124c9e942ae1dd2e38741e /modules/protocol/inspircd3.cpp | |
parent | f34ba4b1f0b69b1b080c22a3fd62b579d756c855 (diff) |
Fix parsing InspIRCd v3 IJOIN messages.
Thanks to @H7-25 and @genius3000 for reporting this.
Diffstat (limited to 'modules/protocol/inspircd3.cpp')
-rw-r--r-- | modules/protocol/inspircd3.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/protocol/inspircd3.cpp b/modules/protocol/inspircd3.cpp index 379b034d7..2faaece99 100644 --- a/modules/protocol/inspircd3.cpp +++ b/modules/protocol/inspircd3.cpp @@ -1578,9 +1578,9 @@ struct IRCDMessageIJoin : IRCDMessage time_t chants = Anope::CurTime; if (params.size() >= 4) { - chants = params[2].is_pos_number_only() ? convertTo<unsigned>(params[2]) : 3; - for (unsigned i = 0; i < params[5].length(); ++i) - user.first.AddMode(params[5][i]); + chants = params[2].is_pos_number_only() ? convertTo<unsigned>(params[2]) : 0; + for (unsigned i = 0; i < params[3].length(); ++i) + user.first.AddMode(params[3][i]); } std::list<Message::Join::SJoinUser> users; |