summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-11 06:03:40 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-11 06:03:40 +0000
commit0bd3141407c7701beed90b8e560a07126db64f25 (patch)
treee2d9b09ad4a319824348b36c629249d6517fc6d1 /include
parentb9190ebc16253254cb649faae76119eec3e14b8e (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/extern.h7
-rw-r--r--include/regchannel.h3
2 files changed, 6 insertions, 4 deletions
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<ChannelModeName> DefConModesOn;
+E Flags<ChannelModeName> DefConModesOff;
+E std::map<ChannelModeName, std::string> 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<ChannelInfoFlag>
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
*/