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 /include/regchannel.h | |
parent | b5213d5a81bc8685e317913a1d2cfdcd5d92ebd5 (diff) |
Initialize ChannelInfo in the Modern C++ way.
Diffstat (limited to 'include/regchannel.h')
-rw-r--r-- | include/regchannel.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/regchannel.h b/include/regchannel.h index 22e3a0474..156b48628 100644 --- a/include/regchannel.h +++ b/include/regchannel.h @@ -84,11 +84,11 @@ public: Anope::string last_topic; /* The last topic that was set on this channel */ Anope::string last_topic_setter; /* Setter */ - time_t last_topic_time; /* Time */ + time_t last_topic_time = 0; /* Time */ Channel::ModeList last_modes; /* The last modes set on this channel */ - int16_t bantype; + int16_t bantype = 2; MemoInfo memos; @@ -97,7 +97,7 @@ public: /* For BotServ */ Serialize::Reference<BotInfo> bi; /* Bot used on this channel */ - time_t banexpire; /* Time bans expire in */ + time_t banexpire = 0; /* Time bans expire in */ /** Constructor * @param chname The channel name |