From 1ef748038083e845af040ddc0b52ac27d2fe6753 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 30 Oct 2012 15:21:47 -0400 Subject: 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) --- modules/protocol/inspircd-ts6.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'modules/protocol') 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(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 { -- cgit