summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-03-26 11:23:05 +0000
committerSadie Powell <sadie@witchery.services>2025-03-26 11:23:05 +0000
commitf3e5ccf353bf9833f792d0b1db2833a115383521 (patch)
tree8ecde5563adefe5c65965837f7ecafa466497d23 /src/regchannel.cpp
parentb5213d5a81bc8685e317913a1d2cfdcd5d92ebd5 (diff)
Initialize ChannelInfo in the Modern C++ way.
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index 376c8d661..851b3f0ac 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -106,24 +106,16 @@ ChannelInfo::ChannelInfo(const Anope::string &chname)
: Serializable(CHANNELINFO_TYPE)
, access(CHANACCESS_TYPE)
, akick(AUTOKICK_TYPE)
+ , name(chname)
+ , time_registered(Anope::CurTime)
+ , last_used(Anope::CurTime)
{
if (chname.empty())
throw CoreException("Empty channel passed to ChannelInfo constructor");
- this->founder = NULL;
- this->successor = NULL;
this->c = Channel::Find(chname);
if (this->c)
this->c->ci = this;
- this->banexpire = 0;
- this->bi = NULL;
- this->last_topic_time = 0;
-
- this->name = chname;
-
- this->bantype = 2;
- this->memos.memomax = 0;
- this->last_used = this->time_registered = Anope::CurTime;
size_t old = RegisteredChannelList->size();
(*RegisteredChannelList)[this->name] = this;