diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2012-10-12 22:47:35 +0200 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2012-10-12 22:47:35 +0200 |
commit | e08422a4eafd7c1d317421ef4929a74f7005fd2d (patch) | |
tree | 90f91887a58b030e9e372ec41de95a41004ff3fb /modules/protocol/ratbox.cpp | |
parent | 757ff06011c9b6ac8f66da7a5cac03597194d97a (diff) |
fixed MODE handling in the ratbox protocol module
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 { |