From b9190ebc16253254cb649faae76119eec3e14b8e Mon Sep 17 00:00:00 2001 From: Adam- Date: Wed, 11 Nov 2009 06:03:25 +0000 Subject: Moved alot of stuff to constructors and destructors, instead of having functions everywhere to create and destroy objects git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2639 5417fbe8-f217-4b02-8779-1006273d7864 --- include/regchannel.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'include/regchannel.h') diff --git a/include/regchannel.h b/include/regchannel.h index c094ac2af..33908cb3a 100644 --- a/include/regchannel.h +++ b/include/regchannel.h @@ -69,7 +69,17 @@ class CoreExport ChannelInfo : public Extensible, public Flags std::bitset<128> mlock_off; /* Modes mlocked off */ public: - ChannelInfo(); + // XXX Hack for defcon, though this really isn't needed now and should be destroyed + ChannelInfo() { } + + /** Default constructor + * @param chname The channel name + */ + ChannelInfo(const std::string &chname); + + /** Default destructor + */ + ~ChannelInfo(); ChannelInfo *next, *prev; char name[CHANMAX]; -- cgit