From 0bd3141407c7701beed90b8e560a07126db64f25 Mon Sep 17 00:00:00 2001 From: Adam- Date: Wed, 11 Nov 2009 06:03:40 +0000 Subject: Made DefCon not use a ChannelInfo structure for saving its modes & params, it was ugly git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2640 5417fbe8-f217-4b02-8779-1006273d7864 --- include/extern.h | 7 ++++++- include/regchannel.h | 3 --- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/extern.h b/include/extern.h index f64ab78d6..e6005b4e8 100644 --- a/include/extern.h +++ b/include/extern.h @@ -642,7 +642,12 @@ E void SetOperType(NickCore *nc); E SList akills, sglines, sqlines, szlines; E int DefConModesSet; -E ChannelInfo DefConModesCI; +E Flags DefConModesOn; +E Flags DefConModesOff; +E std::map DefConModesOnParams; +E bool SetDefConParam(ChannelModeName, std::string &); +E bool GetDefConParam(ChannelModeName, std::string *); +E void UnsetDefConParam(ChannelModeName); E void operserv(User *u, char *buf); E void os_init(); diff --git a/include/regchannel.h b/include/regchannel.h index 33908cb3a..b6d380f40 100644 --- a/include/regchannel.h +++ b/include/regchannel.h @@ -69,9 +69,6 @@ class CoreExport ChannelInfo : public Extensible, public Flags std::bitset<128> mlock_off; /* Modes mlocked off */ public: - // XXX Hack for defcon, though this really isn't needed now and should be destroyed - ChannelInfo() { } - /** Default constructor * @param chname The channel name */ -- cgit