summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-30 15:21:47 -0400
committerAdam <Adam@anope.org>2012-10-30 15:21:47 -0400
commit1ef748038083e845af040ddc0b52ac27d2fe6753 (patch)
tree5492b77fc9d428d40a84e96f316f05d79b4c3dfb
parente4c2dcc0c70f574f3ff4f3c10a0e6bbdb0883d85 (diff)
Fix inspircd mode message for channel modes. It never actually uses this, but other pseudoservers may send modes using this and not fmode (it has no timestamp)
-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
{