summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/protocol/inspircd-ts6.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/modules/protocol/inspircd-ts6.h b/modules/protocol/inspircd-ts6.h
index f01184d12..e60600b4b 100644
--- a/modules/protocol/inspircd-ts6.h
+++ b/modules/protocol/inspircd-ts6.h
@@ -676,19 +676,13 @@ struct IRCDMessageMode : IRCDMessage
if (ircdproto->IsChannelValid(params[0]))
{
Channel *c = findchan(params[0]);
- time_t ts;
- try
- {
- ts = convertTo<time_t>(params[1]);
- }
- catch (const ConvertException &)
- {
- ts = Anope::CurTime;
- }
+ Anope::string modes = params[1];
+ for (unsigned n = 2; n < params.size(); ++n)
+ modes += " " + params[n];
if (c)
- c->SetModesInternal(source, params[2], ts);
+ c->SetModesInternal(source, modes, Anope::CurTime);
}
else
{