From f3e5ccf353bf9833f792d0b1db2833a115383521 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 26 Mar 2025 11:23:05 +0000 Subject: Initialize ChannelInfo in the Modern C++ way. --- include/regchannel.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') 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 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 -- cgit