diff options
Diffstat (limited to 'modules/protocol/ratbox.cpp')
-rw-r--r-- | modules/protocol/ratbox.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
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<Anope::string> ¶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<time_t>(params[1]); - } - catch (const ConvertException &) { } - if (c) - c->SetModesInternal(source, params[2], ts); + c->SetModesInternal(source, params[1], Anope::CurTime); } else { |