summaryrefslogtreecommitdiff
path: root/src/messages.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-04-19 22:53:49 +0100
committerSadie Powell <sadie@witchery.services>2025-04-19 22:53:49 +0100
commitf5a85c69d225edaed4e11eb4c2b27d66ebc5195e (patch)
tree6b1cad444b007d6cc565af5ec3bd199a2c6f0b18 /src/messages.cpp
parentc8b38197670965c18df603a5a4329f6f583b77d7 (diff)
Remove time from the name of some variables where its obvious.
Diffstat (limited to 'src/messages.cpp')
-rw-r--r--src/messages.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/messages.cpp b/src/messages.cpp
index 726e0f953..312b867a3 100644
--- a/src/messages.cpp
+++ b/src/messages.cpp
@@ -110,7 +110,7 @@ void Join::Run(MessageSource &source, const std::vector<Anope::string> &params,
users.emplace_back(ChannelStatus(), user);
Channel *chan = Channel::Find(channel);
- SJoin(source, channel, chan ? chan->creation_time : Anope::CurTime, "", {}, users);
+ SJoin(source, channel, chan ? chan->created : Anope::CurTime, "", {}, users);
}
}
@@ -126,13 +126,13 @@ void Join::SJoin(MessageSource &source, const Anope::string &chan, time_t ts, co
else if (!ts)
;
/* Our creation time is newer than what the server gave us, so reset the channel to the older time */
- else if (c->creation_time > ts)
+ else if (c->created > ts)
{
- c->creation_time = ts;
+ c->created = ts;
c->Reset();
}
/* Their TS is newer, don't accept any modes from them */
- else if (ts > c->creation_time)
+ else if (ts > c->created)
keep_their_modes = false;
/* Update the modes for the channel */
@@ -144,7 +144,7 @@ void Join::SJoin(MessageSource &source, const Anope::string &chan, time_t ts, co
for (const auto &[status, u] : users)
{
- keep_their_modes = ts <= c->creation_time; // OnJoinChannel can call modules which can modify this channel's ts
+ keep_their_modes = ts <= c->created; // OnJoinChannel can call modules which can modify this channel's ts
if (c->FindUser(u))
continue;