From e08422a4eafd7c1d317421ef4929a74f7005fd2d Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Fri, 12 Oct 2012 22:47:35 +0200 Subject: fixed MODE handling in the ratbox protocol module --- modules/protocol/ratbox.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'modules/protocol/ratbox.cpp') diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp index a6fc85675..793347da6 100644 --- a/modules/protocol/ratbox.cpp +++ b/modules/protocol/ratbox.cpp @@ -294,23 +294,16 @@ struct IRCDMessageJoin : CoreIRCDMessageJoin struct IRCDMessageMode : IRCDMessage { - IRCDMessageMode() : IRCDMessage("MODE", 3) { } + IRCDMessageMode() : IRCDMessage("MODE", 2) { } + // Received: :42CAAAIHS MODE 42CAAAIHS :+ao bool Run(MessageSource &source, const std::vector ¶ms) anope_override { if (ircdproto->IsChannelValid(params[0])) { - // 0 = channel, 1 = ts, 2 = modes Channel *c = findchan(params[0]); - time_t ts = Anope::CurTime; - try - { - ts = convertTo(params[1]); - } - catch (const ConvertException &) { } - if (c) - c->SetModesInternal(source, params[2], ts); + c->SetModesInternal(source, params[1], Anope::CurTime); } else { -- cgit