summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
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;