diff options
author | Sadie Powell <sadie@witchery.services> | 2025-03-26 11:23:05 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-03-26 11:23:05 +0000 |
commit | f3e5ccf353bf9833f792d0b1db2833a115383521 (patch) | |
tree | 8ecde5563adefe5c65965837f7ecafa466497d23 /src/regchannel.cpp | |
parent | b5213d5a81bc8685e317913a1d2cfdcd5d92ebd5 (diff) |
Initialize ChannelInfo in the Modern C++ way.
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r-- | src/regchannel.cpp | 14 |
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; |