summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-01-08 00:25:11 -0500
committerAdam <Adam@anope.org>2011-01-08 00:25:11 -0500
commit512d23d60f25203ab88605ba131a0704cadd2263 (patch)
treef7bf42a648677f02f170db1e6692fafad10d81c6 /src/regchannel.cpp
parent44038491264a350a8849e1d7e8547bbdec134d74 (diff)
Made the Flag class able to convert flags to strings and back
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index b240b8554..0d0f5dc54 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -18,7 +18,7 @@ static ChanAccess dummy_access;
/** Default constructor
* @param chname The channel name
*/
-ChannelInfo::ChannelInfo(const Anope::string &chname)
+ChannelInfo::ChannelInfo(const Anope::string &chname) : Flags<ChannelInfoFlag, CI_END>(ChannelInfoFlagStrings), botflags(BotServFlagStrings)
{
if (chname.empty())
throw CoreException("Empty channel passed to ChannelInfo constructor");
@@ -65,7 +65,7 @@ ChannelInfo::ChannelInfo(const Anope::string &chname)
/** Copy constructor
* @param ci The ChannelInfo to copy settings to
*/
-ChannelInfo::ChannelInfo(ChannelInfo *ci)
+ChannelInfo::ChannelInfo(ChannelInfo *ci) : Flags<ChannelInfoFlag, CI_END>(ChannelInfoFlagStrings), botflags(BotServFlagStrings)
{
*this = *ci;