summaryrefslogtreecommitdiff
path: root/modules/protocol/inspircd3.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-03-30 14:43:39 +0000
committerP. Powell <petpow@saberuk.com>2019-09-23 13:23:02 +0100
commitf7f45b4e2bda27d8666bcd83104e6b2909853d34 (patch)
tree84012818b9261e996a5cc32656601b5b1dbc522e /modules/protocol/inspircd3.cpp
parent3cad3514f1b0a08e3dcb5d9e79de896f3293ca75 (diff)
Update for the 1205 FTOPIC syntax.
Diffstat (limited to 'modules/protocol/inspircd3.cpp')
-rw-r--r--modules/protocol/inspircd3.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/protocol/inspircd3.cpp b/modules/protocol/inspircd3.cpp
index 20566fa30..e361abc90 100644
--- a/modules/protocol/inspircd3.cpp
+++ b/modules/protocol/inspircd3.cpp
@@ -154,7 +154,7 @@ class InspIRCd3Proto : public IRCDProto
if (c->topic_time > ts)
ts = Anope::CurTime;
/* But don't modify c->topic_ts, it should remain set to the real TS we want as ci->last_topic_time pulls from it */
- UplinkSocket::Message(source) << "FTOPIC " << c->name << " " << ts << " " << c->topic_setter << " :" << c->topic;
+ UplinkSocket::Message(source) << "FTOPIC " << c->name << " " << c->creation_time << " " << ts << " " << c->topic_setter << " :" << c->topic;
}
}
@@ -1491,15 +1491,15 @@ struct IRCDMessageFMode : IRCDMessage
struct IRCDMessageFTopic : IRCDMessage
{
- IRCDMessageFTopic(Module *creator) : IRCDMessage(creator, "FTOPIC", 4) { }
+ IRCDMessageFTopic(Module *creator) : IRCDMessage(creator, "FTOPIC", 5) { }
void Run(MessageSource &source, const std::vector<Anope::string> &params) anope_override
{
- /* :source FTOPIC channel topicts setby :topic */
+ /* :source FTOPIC channel ts topicts setby :topic */
Channel *c = Channel::Find(params[0]);
if (c)
- c->ChangeTopicInternal(NULL, params[2], params[3], Anope::string(params[1]).is_pos_number_only() ? convertTo<time_t>(params[1]) : Anope::CurTime);
+ c->ChangeTopicInternal(NULL, params[3], params[4], params[2].is_pos_number_only() ? convertTo<time_t>(params[2]) : Anope::CurTime);
}
};